2 Replies Latest reply on Jul 18, 2012 12:00 AM by gajendra083

    Unable to keep object's in session ?

    gajendra083

      Hi,

       

      I am unable to keep object's in session scope. Same code is working fine in Jboss 4.

       

      In first JSP, keeping SessionObject into session scope, setting all it's property.

      Using response.sendRedirect(), calling another JSP, but unable to get SessionObject properties over there.

       

      1) First JSP

       

      <jsp:useBean id="sessionObject" class="com.ui.admin.menus.SessionObject" scope="session" />

      <%

      adminJB.setSessionObject( sessionObject );

       

      ........

      ......

       

      response.sendRedirect(url);

      %>

       

      2) Second JSP

       

      <jsp:useBean id="sessionObject" class="com.ui.admin.menus.SessionObject" scope="session" />

      <%

       

      Long personId = sessionObject.getPersonId();   // gettting null value;

       

      %>

       

       

       

      Need help

       

       

      Thanks,

      Gajendra