on 10-11-2006 4:26 PM
Hi,
we are using 2004s older than SP 7 are not able to use
com.sap.tc.webdynpro.services.sal.adapter.api.WDProtocolAdapter to get easy access to url params.
A JSP iView calls a WebDynpro iView and I need to get access to a specific url parameter in the webdynpro.
When I debug, I could see the MimeHeaders value:
<i>{{Accept: /},,{Accept-Language: en-gb,de-ch;q=0.5},{Content-Type: ....</i>
Can anybody help me, how I have access to param CKey within Java WebDynpro?
Thanks.
Stefan
Stefan,
Let me format a bit your text to make it looks like HTTP headers:
Accept: /
Referer: https://sapep-dev.ch.winterthur.com:56901/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!
2fwinterthur!2fhr!2fmss!2froles!
2fcom.winterthur.hr.mss_new!
2fcom.winterthur.hr.mss_myteam_new!
2fcom.winterthur.hr.eeprofile!
2fcom.winterthur.framework.eeprofilegeneraldatawd?
CKey=P+010800000017021SAP_R3_HumanResources2006010199991231
Accept-Language: en-gb,de-ch;q=0.5
Content-Type: ....
So it seems that CKey is not a parameter of WD application URL, but rather a parameter of JSP iView that calls WD, hence this parameter is located in "Referer" HTTP header.
The reason is that either your JSP doesn't pass this parameter further or WD iView does not pass parameter to WD application.
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Valery Silaev,
> .. or WD iView does not pass parameter to WD application.
This was the point, we did forget to add this configuration that the parameters are passed to webdynpro.
In iView Property Editor we added:
Parameters forwarded to Web Dynpro -> *
WDWebContextAdapter.getWebContextAdapter().getRequestParameter("CKey")
Cheers!
Stefan
Try
WDWebContextAdapter.getWebContextAdapter().getRequestParameter(key)
See <a href="https://media.sdn.sap.com/javadocs/NW04/SPS15/wd/com/sap/tc/webdynpro/services/sal/adapter/api/IWDWebContextAdapter.html">Javadoc</a>.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.