Skip to Content
avatar image
Former Member

ISA R3 b2b

We are doing some custom development for ISA r3(webshop)

I have some data in the file order.jsp.

How do i store this data in session so that I can pass it across to different screens

and display it on the ordersimulate.jsp page.

Do i need to modify the struts action classes or is there a direct way in which i can

store the information in session and retreive the same on subsequent JSP page?

Any information/code snippet is appreciated.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Nov 26, 2007 at 07:14 AM

    Hi Stride,

    You can store the data in the userSessionData object. This scope of this object is session, so you can easily transfer the data between classes and jsp's.

    To get this object, you can add the code as:

    UserSessionData userSessionData = UserSessionData.getUserSessionData(pageContext.getSession());

    To store the information use;

    userSessionData.setAttribute("attrib_name","test");

    To retrieve the information use:

    String name = userSessionData.getAttribute("attrib_name");

    Hope this will resolve your query.

    Regards,

    Prashil

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Prashil

      This approach certainly will work.

      On a side note is there any concern with stroing one or two values in the session from the performance perspective.

      Also i am hoping the session object works correctly and updates the information correctly.?