cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Retrieve HTTP Session attribute value

0 Likes
483

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");

View Entire Topic
0 Likes

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.

Former Member
0 Likes

Thanks, Corina. That will help us a lot. An earlier post by Bertram seemed to suggest to use storing in a database.

Thanks

Raj Balakrishnan