on 02-25-2008 6:42 PM
Hi,
Using Web Dynpro for Java, how can I retrieve from Http Session one attribute setup by a standard Java app?
The value was setup like this:
IPortalComponentSession compSession = request.getComponentSession();
//where IPortalComponentRequest request
javax.servlet.http.HttpSession thisHttpSession = null;
thisHttpSession = compSession.getHttpSession();
thisHttpSession.setAttribute("myvalue","test");
Hi
Were u able to retrieve the value as I have a similar requirement and I am unable to get the parameter value using protocoladapter.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Seems that there is no bridge between Web Dynpro iView and Standard Portal iViews, ways of retrieving Session variables from one to another.
Therefore to solved my issue creating Web Dynpro iView that save the needed value using:
WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, )
and I can retrieved them from other Web Dynpro applications using the: WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE,..)
Thank you all for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, this doesnt work.
Where can I store then global name/values that need to be used by other Web Dynpro iView and Standard Portal iViews?
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Corina,
The WD framework has been designed to store the session data in the Component controller. Map your views data to the Component controller and access the component controller's data in the second view by making similar mapping. For more details refer to the following tutorial.
Thanks!
Surya.
Corina,
I am not sure if you can get HTTP session attributes but you may give this a try:
IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
String paramValue = request.getParameter("<atributename>");
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.