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

Retrieve HTTP Session attribute value

0 Likes
489

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

No, this doesn’t 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

Former Member
0 Likes

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.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94a...

Thanks!

Surya.

Former Member
0 Likes

Hi,

Make use of the WDScopeUtils.

Regards

Ayyapparaj

Former Member
0 Likes

Hi,

You can retrieve the value as being told by Chintan and store in the context of your component controller if the same needs to be shared amongst different views.

Regards,

Murtuza