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

Retrieve HTTP Session attribute value

0 Likes
482

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
chintan_virani
Active Contributor
0 Likes

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