Topic
  • 1 reply
  • Latest Post - ‏2012-10-05T02:43:08Z by Thomas_Hurek
Gangadar
Gangadar
56 Posts

Pinned topic Values set in HttpSession in Theme

‏2012-10-03T20:44:39Z |
Hey Guys,

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.

Any inputs/ideas?

portlet:JSR168
Container: WPS 6.1.5

Gangadhar
Updated on 2012-10-05T02:43:08Z at 2012-10-05T02:43:08Z by Thomas_Hurek
  • Thomas_Hurek
    Thomas_Hurek
    2 Posts

    Re: Values set in HttpSession in Theme

    ‏2012-10-05T02:43:08Z  
    Portlets and the theme do not share the same session even though the session ID is the same. See details here:
    https://www.ibm.com/developerworks/mydeveloperworks/blogs/portalops/entry/session_handling_with_websphere_portal8?lang=en

    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: thurek@us.ibm.com