6 Replies Latest reply on Jan 12, 2009 12:36 AM by ruchika

    Sharing session attribute between servelt and portlet

    sbiwal

      Hi I am working with JBoss Portal 2.6.2, deployed with JBoss AS 4.2. I have the following situation -

      A thirdparty class calls a servlet (myServlet). Now this servlet should update a portlet (myPortlet) based on the parameters sent by the thirdparty class.

      In the doGet fucntion of myServlet I set the parameter received as a session attribute by -
      request.getSession().setAttribute(param, value);

      However when I get to the doView function of the portlet, this session attribute is lost.

      If I try a vice-versa scenario (setting attribute in Portlet and then reading from servlet) it doesn't work either !!!

      Please help !!