on 03-05-2008 10:23 AM
Hi,
i have a requirement to accesss a session parameter 9set in a portal application) in a webdynrpo application.
I saw many threads related to same but none of them seem to work for me.
i have laready tried these:
1)
HttpSession session = ((com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter)WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest().getSession();
Problem here is IWebContextAdapter is not identifiable to wd
2)
wdscopeutil.get()
3)
WDWebContextAdapter.getWebContextAdapter().getRequestParameter()
None of these seem to work. Can anybody suggest any options?
In pdk I have used httpsession to set session parameter value. I have also tried url query parameter.
Hi,
Try this:
IWDProtocolAdapter protocoladapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocoladapter.getRequestObject();
String str = request.getParameter(<parameter name>);
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks to both of you. I used the protocoladapter but it did not help me.
In my jspdynpage I use the following code:
IPortalComponentRequest req = (IPortalComponentRequest)this.getRequest();
IPortalComponentResponse res= (IPortalComponentResponse)this.getResponse();
HttpSession session =req.getServletRequest().getSession();
session.setAttribute("value","12345678");
In webdynrpo:
IWDProtocolAdapter protocoladapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocoladapter.getRequestObject();
String str = request.getParameter("value");
any inputs?
Hi,
use
WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter(key)
Returns the parameter value for the specified key if existing, null otherwise.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.