0 Replies Latest reply on Nov 11, 2008 9:13 AM by cemal unal

    Session Attributes in Layout

    cemal unal Newbie

      Hi there,

      I'm setting some HttpSession Attributes in my portlets, that works fine. But there is a problem, i cannot figure out, what I'm doing wrong:

      I want to display some of the HttpSession attributes in my layout.

      a simple

      <% session.getAttribute("param") %>

      results in null.

      If I print out the session id (portlet and layout page) both ids are equal. Isn't it possible to get the session attributes at the Layout layer?

      I'm setting the session attributes like this
      (RenderRequest) request.getPortletSession().setAttribute("param", "param, PortletSession.APPLICATION_SCOPE)


      I would appreciate any help.

      Thanks and regards