How to forward the request
hi all,
can somebody tell me how to forward the request from one context to another.
thanks in adv.
ritu
Ritu, when you are talking about a different context are you talking about application, session and page contexts?? If yes, then I don't think you can forward a request to another context!
If you are after a context (bean) from within your servlet, have you tried:
mycontext = (MyContextClass)getServletContext().getAttribute("thenameofmycontext");HTH.
Similar Messages
-
Forward the request to a window with specific parameters
page0.asp->page1.jsp
When the user click submit button in page0.asp, it will post the form
request to page1.jsp.
page0.asp and page1.jsp are in separate machines. In page1.jsp, based
on the parameter
interfaceName, it will forward to different jsp pages. However, we want
to forward the request
to a window with parameter like the following, without the menu bar and
toolbar.
The question is how to forward the request to a window like that?
window.open("test2.jsp",null,
"height=500,width=500,status=yes,toolbar=no,menubar=no,location=no");
//page1.jsp
<%
String interfaceName = request.getParameter("interfaceName");
if (interfaceName != null)
{ if (interfaceName.equalsIgnoreCase("id1"))
url="/id1.jsp";
else if (interfaceName.equalsIgnoreCase("id2"))
url="/id2.jsp";
else if (interfaceName.equalsIgnoreCase("id3"))
url="/id3.jsp";
//etc...
request.getRequestDispatcher(url).forward(request,response);
%>
Please help and advise. thanks!!The server cannot decide where to send its response to. It can only send
it to where the request came from.More specifically... to the server, the browser itself makes the request. Where the browser wants to put the response is entirely up to the browser.
Unfortunately, you can't really use ECMAScript (JavaScript) after the response is returned to redirect it. I suppose you could copy the DOM contents of the response page into another frame's document or something, but that's just ugly.
and don't cross-post... -
Forwarding the request to a blob
Hi..so I have a html in the database stored as a blob. I retrieve that from the database inorder to forward the request to that html. But how can I acutally forward the request to a blob? There is no physical file present. And I am not even allowed to write that blob into a file and forward the request. Is there any other way to solve this problem? Also if I have a css file in a blob, how can I actually embed that css data onto my html blob data?
TIAYou forward the request to a servlet that reads the blob and copies it, byte for byte, to its response's output stream.
And if you want to serve your CSS from a blob, do the same thing. Don't try something ridiculously drastic like trying to apply the CSS to the HTML on the server side. -
How to delete the request in se10
Hi Experts,
How to delete the request in se10 ....plz explain
Regards
VenkatHi,
Go to SE10,select the request which you wnat to delete.You will find a delete icon on the top.Select it.
This will delete the request.
Make sure that this request is the one which is under ur ID.If you want to delete the request which is under other ID,it wont allow to delete.
Thanks & Regards,
Suchitra.V -
How to unlock the request for a report and add the same query to new reques
hi,
how to unlock the request for a and add the same query to new requesYou can unlock in SE03 tcode.
Goto tcode SE01, give the transport number --> display --> double click on the transport --> in the next screen select all the elements --> delete --> save.
To attach it to another transport, In RSA1, click on transport connection> Choose Object types> query elements --> here you can find your query/ or you can search, which you can drag to right and attach to the transport (using truck button). -
How 2 capture the request in background
Hi,
how 2 capture the request in background
ThanksHi,
My question is ,
while creating any object we generally assign that to particular request .
I have one object XXXX . I want to find which request is assigned to this object . i want to know.
Thanks -
How to create the request for change of selection text into other language.
Hi,
In my object requirement is that when login through Japanese language, then on selection screen selection text should appear in Japanese language. For that I have maintained the text in Japanese language the program where we define the selection text there from translation I have maintained the text in Japanese but while maintain the text it didn't ask me for REQUEST, because of that I am not able to transport the changes to next system, so I want know how to create the request for this case.
ThanksHello Chetan,
You could goto the selection screen texts by goto-> selection texts,
Then you could again goto -> Translation
or
Other-> Translation(Not sure )
Then double click on the Program you should be able to see the Texts that need translation, now change something save and come back and try to activate, now it should propose for a new Transport Request.
Either create a new transaport request or give one that you have given for the program.
Hope the issue is resolved. -
How to forward DHCP requests through 1140N AP
We have an 1140N AP connected to a switch and our "network partner" controls the router and will hand out DHCP and do the NAT for this WLAN. How can I configure the AP to forward DCHP requests through.
I have WPA2 PSK (TKIP) setup and the client is able to authenticate however we fail to get an address. In this case the Ethernet interface was left alone so it has the default config and it gets a DHCP address fine. How can I configure this AP to enable the rest of the WiFI clients to get an IP?Here is my cleaned config. I put helpers everywhere and still can't an IP.
I don't have control over the switch or router that this will plug into nor the setup. The switchport it will plug into has a VLAN designated for Guest Wireless access. I suspect that I need to redo the config without VLAN10 involved correct?
Current configuration : 4880 bytes
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
hostname [removed]
enable secret [removed]
no aaa new-model
dot11 syslog
dot11 ssid {removed]
vlan 10
authentication open
authentication key-management wpa version 2
guest-mode
wpa-psk ascii 7 [removed]
crypto pki trustpoint TP-self-signed-1278736388
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1278736388
revocation-check none
rsakeypair TP-self-signed-1278736388
crypto pki certificate chain TP-self-signed-1278736388
certificate self-signed 01
3082024D 308201B6 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 31323738 37333633 3838301E 170D3032 30333035 32323138
33335A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D31 32373837
33363338 3830819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100BDA9 327F8A3C CFB3C216 F23AA107 CEEE007D CFC2A89C 9064A4F2 66A07EB7
EB7F3602 74B505D1 9A374875 1DC71A58 607632F3 2A41250B 6BB79B68 D5C1E00D
B7AA55EB 4E36668B 9BF92E94 C2B0699D A009902A D7A802D1 DCF699F2 99F20B0B
D5BAB32F 3F8749B2 6C641CF2 6BC7FE8C 3078876C DAC97CFD 69BA42E5 98F81B37
70830203 010001A3 75307330 0F060355 1D130101 FF040530 030101FF 30200603
551D1104 19301782 1561702E 736F732D 61642E73 74617465 2E6E762E 7573301F
0603551D 23041830 1680141A 78042A2D A7149DAC E90E1EAF 6496AB47 DF674630
1D060355 1D0E0416 04141A78 042A2DA7 149DACE9 0E1EAF64 96AB47DF 6746300D
06092A86 4886F70D 01010405 00038181 00B38305 C973DD31 F23C1B17 78181DF9
A5A8A409 FDBAEF54 DF94DB89 815954EA 45322B5B BDB32C6A F0353228 ADD4A398
CC249C49 A4C9C66D 08712AC7 7C5D12D5 C412933C 9E2893C3 4A432577 2FCA9A67
2F89FF79 8FA0DECD 88CBB2C1 A5DA778A 80839D51 1883EEE7 A8754EC9 283E25E0
7D91F064 AC633286 81232031 0BEF403E C1
quit
username [removed] privilege 15 password [removed]
bridge irb
interface Dot11Radio0
no ip address
ip helper-address 10.135.14.1
no ip route-cache
encryption vlan 10 mode ciphers tkip
ssid [removed]
antenna gain 0
speed basic-1.0 basic-2.0 basic-5.5 basic-11.0 basic-6.0 basic-9.0 basic-12.0 basic-18.0 basic-24.0 basic-36.0 basic-48.0 basic-54.0 m0. m1. m2. m3. m4. m5. m6. m7. m8. m9. m10. m11. m12. m13. m14. m15.
station-role root
bridge-group 1
bridge-group 1 block-unknown-source
no bridge-group 1 source-learning
no bridge-group 1 unicast-flooding
bridge-group 1 spanning-disabled
interface Dot11Radio0.10
encapsulation dot1Q 10
ip helper-address 10.135.14.1
no ip route-cache
bridge-group 10
bridge-group 10 subscriber-loop-control
bridge-group 10 block-unknown-source
no bridge-group 10 source-learning
no bridge-group 10 unicast-flooding
bridge-group 10 spanning-disabled
interface Dot11Radio1
no ip address
ip helper-address 10.135.14.1
no ip route-cache
encryption vlan 10 mode ciphers tkip
ssid [removed]
antenna gain 0
dfs band 3 block
speed basic-6.0 basic-9.0 basic-12.0 basic-18.0 basic-24.0 basic-36.0 basic-48.0 basic-54.0 m0. m1. m2. m3. m4. m5. m6. m7. m8. m9. m10. m11. m12. m13. m14. m15.
channel dfs
station-role root
bridge-group 1
bridge-group 1 block-unknown-source
no bridge-group 1 source-learning
no bridge-group 1 unicast-flooding
bridge-group 1 spanning-disabled
interface Dot11Radio1.10
encapsulation dot1Q 10
ip helper-address 10.135.14.1
no ip route-cache
bridge-group 10
bridge-group 10 subscriber-loop-control
bridge-group 10 block-unknown-source
no bridge-group 10 source-learning
no bridge-group 10 unicast-flooding
bridge-group 10 spanning-disabled
interface GigabitEthernet0
no ip address
no ip route-cache
duplex auto
speed auto
no keepalive
bridge-group 1
no bridge-group 1 source-learning
bridge-group 1 spanning-disabled
interface GigabitEthernet0.10
encapsulation dot1Q 10
no ip route-cache
bridge-group 10
no bridge-group 10 source-learning
bridge-group 10 spanning-disabled
interface BVI1
ip address dhcp client-id GigabitEthernet0
ip helper-address 10.135.14.1
no ip route-cache
ip http server
ip http authentication local
no ip http secure-server
ip http help-path
http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
bridge 1 route ip
banner motd ^C
Access to this device is restricted to authorized users. Unauthorized access is a violation of state and federal, civil and criminal laws (e.g., NRS 205.4765). Evidence of unauthorized access will be provided to law enforcement personnel.
^C
line con 0
password [removed]
login local
line vty 0 4
password [removed]
login local
end
Current configuration : 4880 bytes
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
hostname [removed]
enable secret [removed]
no aaa new-model
dot11 syslog
dot11 ssid {removed]
vlan 10
authentication open
authentication key-management wpa version 2
guest-mode
wpa-psk ascii 7 [removed]
crypto pki trustpoint TP-self-signed-1278736388
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1278736388
revocation-check none
rsakeypair TP-self-signed-1278736388
crypto pki certificate chain TP-self-signed-1278736388
certificate self-signed 01
3082024D 308201B6 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 31323738 37333633 3838301E 170D3032 30333035 32323138
33335A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D31 32373837
33363338 3830819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100BDA9 327F8A3C CFB3C216 F23AA107 CEEE007D CFC2A89C 9064A4F2 66A07EB7
EB7F3602 74B505D1 9A374875 1DC71A58 607632F3 2A41250B 6BB79B68 D5C1E00D
B7AA55EB 4E36668B 9BF92E94 C2B0699D A009902A D7A802D1 DCF699F2 99F20B0B
D5BAB32F 3F8749B2 6C641CF2 6BC7FE8C 3078876C DAC97CFD 69BA42E5 98F81B37
70830203 010001A3 75307330 0F060355 1D130101 FF040530 030101FF 30200603
551D1104 19301782 1561702E 736F732D 61642E73 74617465 2E6E762E 7573301F
0603551D 23041830 1680141A 78042A2D A7149DAC E90E1EAF 6496AB47 DF674630
1D060355 1D0E0416 04141A78 042A2DA7 149DACE9 0E1EAF64 96AB47DF 6746300D
06092A86 4886F70D 01010405 00038181 00B38305 C973DD31 F23C1B17 78181DF9
A5A8A409 FDBAEF54 DF94DB89 815954EA 45322B5B BDB32C6A F0353228 ADD4A398
CC249C49 A4C9C66D 08712AC7 7C5D12D5 C412933C 9E2893C3 4A432577 2FCA9A67
2F89FF79 8FA0DECD 88CBB2C1 A5DA778A 80839D51 1883EEE7 A8754EC9 283E25E0
7D91F064 AC633286 81232031 0BEF403E C1
quit
username [removed] privilege 15 password [removed]
bridge irb
interface Dot11Radio0
no ip address
ip helper-address 10.135.14.1
no ip route-cache
encryption vlan 10 mode ciphers tkip
ssid [removed]
antenna gain 0
speed basic-1.0 basic-2.0 basic-5.5 basic-11.0 basic-6.0 basic-9.0 basic-12.0 basic-18.0 basic-24.0 basic-36.0 basic-48.0 basic-54.0 m0. m1. m2. m3. m4. m5. m6. m7. m8. m9. m10. m11. m12. m13. m14. m15.
station-role root
bridge-group 1
bridge-group 1 block-unknown-source
no bridge-group 1 source-learning
no bridge-group 1 unicast-flooding
bridge-group 1 spanning-disabled
interface Dot11Radio0.10
encapsulation dot1Q 10
ip helper-address 10.135.14.1
no ip route-cache
bridge-group 10
bridge-group 10 subscriber-loop-control
bridge-group 10 block-unknown-source
no bridge-group 10 source-learning
no bridge-group 10 unicast-flooding
bridge-group 10 spanning-disabled
interface Dot11Radio1
no ip address
ip helper-address 10.135.14.1
no ip route-cache
encryption vlan 10 mode ciphers tkip
ssid [removed]
antenna gain 0
dfs band 3 block
speed basic-6.0 basic-9.0 basic-12.0 basic-18.0 basic-24.0 basic-36.0 basic-48.0 basic-54.0 m0. m1. m2. m3. m4. m5. m6. m7. m8. m9. m10. m11. m12. m13. m14. m15.
channel dfs
station-role root
bridge-group 1
bridge-group 1 block-unknown-source
no bridge-group 1 source-learning
no bridge-group 1 unicast-flooding
bridge-group 1 spanning-disabled
interface Dot11Radio1.10
encapsulation dot1Q 10
ip helper-address 10.135.14.1
no ip route-cache
bridge-group 10
bridge-group 10 subscriber-loop-control
bridge-group 10 block-unknown-source
no bridge-group 10 source-learning
no bridge-group 10 unicast-flooding
bridge-group 10 spanning-disabled
interface GigabitEthernet0
no ip address
no ip route-cache
duplex auto
speed auto
no keepalive
bridge-group 1
no bridge-group 1 source-learning
bridge-group 1 spanning-disabled
interface GigabitEthernet0.10
encapsulation dot1Q 10
no ip route-cache
bridge-group 10
no bridge-group 10 source-learning
bridge-group 10 spanning-disabled
interface BVI1
ip address dhcp client-id GigabitEthernet0
ip helper-address 10.135.14.1
no ip route-cache
ip http server
ip http authentication local
no ip http secure-server
ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
bridge 1 route ip
banner motd ^C
Access to this device is restricted to authorized users. Unauthorized access is a violation of state and federal, civil and criminal laws (e.g., NRS 205.4765). Evidence of unauthorized access will be provided to law enforcement personnel.
^C
line con 0
password [removed]
login local
line vty 0 4
password [removed]
login local
end -
How to find the Request in R/3??
HI Guru's
I have done the Re-process of InfoPackage in BW and the data is coming from R/3
I want to see the request in R/3
I know the request in R/3 will start with BI
but i don't know how to see in R/3
any help much appreciated...
Regards,
BHHi BH,
If you want to see the status of the extraction job you can go directly from the monitor screen (Path- Environment->Jobv Overview->In the Source system). Give your login and you should be able to see the job.
Alternatively you can use tcode sm37 to goto the Job Monitor screen and give the job id(BI appended with the request id in BW).
Hope that helps.
Regards. -
How to delete the Request Number
Hi all,
How to delete the Requset Number in Development Client.Already i transported this Req. Number to Tesing Client.For what purpose, deleting the request number won't restore your dev system. You can remove the request from the import queues via transaction STMS to insure it will not be accidentally imported.
You can usually only destroy a request in source system if it has not been released and all objects are unlocked, but this is risky in some cases and may cause a loss of information or coherence.
Regards -
Who knows: How to divide the request.getInputStream()?
I use a form in a web page to update files, the form code is
<form action="/Mywork/servlet/fileupdate1" method="post" enctype="multipart/form-data">
<p>
Please select a file1 to upload: <input type="file" name="foo">
</p>
<p>
Please select a file2 to upload:<input type="file" name="foo1">
</p>
<input type="submit" value="Upload File!">
</form>
and the "fileupdate1" servlet which the "action" in the form tag refers to will get the inputstream by
"ServletInputStream servIn = request.getInputStream();", and create new OutputFileStream in the disk. But
new files which the servlet stored always have some additional codes "
-----------------------------7d419320202be
Content-Disposition: form-data; name="foo"; filename="H:\Documents and
Settings\administrator\desktop\ee.java"
Content-Type: application/octet-stream
If I updating two files, each file will has these kinds of codes and the two files only have one inputstream. I don't
how to remove these additional codes and how to divide the stream into pieces according to the updated-file-size.
I don't know wether I say it clearly?And
does anyone know the reasons and can help me?
Thank you very much.Use something like Jakarta Commons FileUpload to process the multipart/form-data request:
http://jakarta.apache.org/commons/fileupload/ -
How to divide the request.getInputStream()?
I use a form in a web page to update files, the form code is
<form action="/Mywork/servlet/fileupdate1" method="post" enctype="multipart/form-data">
<p>
Please select a file1 to upload: <input type="file" name="foo">
</p>
<p>
Please select a file2 to upload:<input type="file" name="foo1">
</p>
<input type="submit" value="Upload File!">
</form>
and the "fileupdate1" servlet which the "action" in the form tag refers to will get the inputstream by
"ServletInputStream servIn = request.getInputStream();", and create new OutputFileStream in the disk. But
new files which the servlet stored always have some additional codes "
-----------------------------7d419320202be
Content-Disposition: form-data; name="foo"; filename="H:\Documents and
Settings\administrator\desktop\ee.java"
Content-Type: application/octet-stream
If I updating two files, each file will has these kinds of codes and the two files only have one inputstream. I don't
how to remove these additional codes and how to divide the stream into pieces according to the updated-file-size.
I don't know wether I say it clearly?And
does anyone know the reasons and can help me?
Thank you very much.Well, if you know the format, you'd know that the file data starts after the first blank line (\r\n\r\n).
But why don't you just use Jakarta Commons File Upload or some other existing free package to handle multipart forms and save yourself the trouble. -
How to display the request date in query
Hi,
I want to display the No. of request ID and request date in the query, but how could I get the request date?
Can anyone give me some suggestion?
Thanks
HuaiyuanHi,
By "request date" you mean the loading process "request date" ?
If so, as Diogo said, add an infoObject in your data provider for this, but you won't be able to collapse anything if that's a cube.
Thanks
Matthieu -
How to get the request xml string in Business service.
Hi
I have following requirement
1) XAI inbound service will get a input xml request feed and call the Business Service.
2) Business service will do some validation and do the insert in the database.
My BS schema is as below
<schema pageAction="change">
<personId mapField="PER_ID"/>
<personOrBusiness mapField="PER_OR_BUS_FLG"/>
<name mapField="ENTITY_NAME" mdField="C1_ENTITY_NAME"/>
<emailAddress mapField="EMAILID"/>
<city mapField="CITY"/>
<county mapField="COUNTY"/>
<postal mapField="POSTAL"/>
<houseType mapField="HOUSE_TYPE"/>
<taxVendorGeographicalCode mapField="GEO_CODE"/>
<isInCityLimit mapField="IN_CITY_LIMIT"/>
<state mapField="STATE"/>
<version mapField="VERSION"/>
<division mapField="CIS_DIVISION"/>
<accessGroup mapField="ACCESS_GRP_CD"/>
<address1 mapField="ADDRESS1"/>
<personCharacteristic type="list" mapList="CI_PER_CHAR">
<personId mapField="PER_ID"/>
<characteristicType mapField="CHAR_TYPE_CD"/>
<characteristicValue mapField="CHAR_VAL"/>
<effectiveDate mapField="EFFDT"/>
<adhocCharacteristicValue mapField="ADHOC_CHAR_VAL"/>
<characteristicValueForeignKey1 mapField="CHAR_VAL_FK1"/>
<characteristicValueFK2 mapField="CHAR_VAL_FK2"/>
<characteristicValueFK3 mapField="CHAR_VAL_FK3"/>
<characteristicValueFk4 mapField="CHAR_VAL_FK4"/>
<characteristicValueFK5 mapField="CHAR_VAL_FK5"/>
</personCharacteristic>
</schema>
The request XML to BS is as below_
(support.schema.AbstractSchemaBasedDispatcher) Performing page:change of BusinessService CM_SPRDSHT_BS' (service='CMSPRDHSHTUPLD'), with input request
<?xml version="1.0" encoding="UTF-8"?>
<CM_Person>
<personOrBusiness>P</personOrBusiness>
<name>Marsh,Corporate</name>
<emailAddress>[email protected]</emailAddress>
<city>Tampa</city>
<country>USA</country>
<postal>2131</postal>
<houseType/>
<taxVendorGeographicalCode/>
<isInCityLimit/>
<state>CA</state>
<version>1</version>
<division>930</division>
<accessGroup>***</accessGroup>
<address1>Address of Khan</address1>
</CM_Person>
I can access the values of each xml node in BS with the help of data item.
I wanted to know how can I get the above request xml string in my Business Service in Java.{color:#0000ff}http://java.sun.com/javase/6/docs/api/java/lang/Integer.html#parseInt(java.lang.String)
http://java.sun.com/javase/6/docs/api/java/lang/Integer.html#valueOf(java.lang.String){color} -
How to change the requested delivery date when approval has been done
Hi
We use SRM5.0 and we want to implement SC, now we want to make it possible to change the delivery date in the shopping cart when we approve.
This is needed if we request today but the approver didn't approve same day, therefore the requested day has to move the same number of days, that the approver has spend. Or else the deliver date will not be correct.
Do any of you know how to do this??
Best regards
JakobHi Jakob,
What scenario do you use? Classic, Extended Classic, Standalone?
So depending on your scenario you can have differente types of follow-on documents (PR/PO only in ERP in case of Classic, or PO in SRMand ERP in case of Extended Classic).
Do you use Sourcing Cockpit?
I've tested this scenario in SRM 7.0 Standalone and if the follow-on document (in my case, a PO) is not "Ordered" yet then I can change the SC. But if it is already "Ordered", I can't change the SC. This is standard behavior.
You could use Sourcing Cocking to solve this issue, in this you don't use it yet.
Best regards,
Christian Zeuch
Maybe you are looking for
-
How to enter a non-oracle employee"labor hours in Oracle PA"
Hi Friends, I have an issue that "need to enter outside Oracle employee (who has not entered as employee in HRMS, but working as temporary only) labor hours in PA" (11.5.10.2) for a perticular Project. Thanks in advance Surya Dev
-
The more I read in the community, the more confused I get. I've got my masters backup'd to another HD & the cloud. Was going to backup the library expecting it to be pretty small and saw preview & thumbnail folders are relatively large. Have read
-
Due Date in Customer Ageing Report
Hi, Running V8.8 and I want to show the Due date in the printed Customer Ageing Detail Report. System Information shows it should be Variable 50 but this does not work in the Layout Designer. Can anyone please suggest the corerct variable or formul
-
Are my group messages being sent as MMS instead of SMS?
Hi there! I just have a quick question about text messaging on my iPhone. I read here (http://support.apple.com/kb/HT5760) that "some carries automatically convert group messages into MMS" and that "group messaging is sent either as an SMS or MMS" Se
-
Hi all, I am getting White space error how to avoid it... I found it was caused due to & symbol in the particular field. Please suggest how to rectify this.... Regards Rajesh