I was trying to set an attribute in HttpSession in theme (Default.jsp)....and get that attribute in Portlet JSP.
I tried to print the session ids in theme and portlet..they are one and the same but I was not able to retrieve the attribute that was set in theme in portlet.
I was wondering...if they shared the same session ids...I should get the attributes easily.
Container: WPS 6.1.5
Pinned topic Values set in HttpSession in Theme
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-10-05T02:43:08Z at 2012-10-05T02:43:08Z by Thomas_Hurek
Thomas_Hurek 110000ADUU2 Posts
Re: Values set in HttpSession in Theme2012-10-05T02:43:08ZThis is the accepted answer. This is the accepted answer.Portlets and the theme do not share the same session even though the session ID is the same. See details here:
If you want to retrieve a parameter from the theme in a portlet you could use other options like a Pojo, the request, threadlocale, ...
WebSphere Portal Lab Services & Chief Programmer,IBM Research Triangle Park Lab,Internet: email@example.com