Results 1 to 2 of 2

Thread: Use session

  1. #1
    Eric is offline Senior Member
    Join Date
    Jun 2007
    Rep Power

    Default Use session

    I must ask help with sessions because I am making a system that has servlet in charge to receive a form from a page jsp, which one you see successfully entered the form, I need to leave it entered within the same page jsp, in a listing but it leaves to me very expensive to make updates towards SAP, that is the one who has the entered data. So, I need to keep that information that I show in jsp in the session of the user.


  2. #2
    Marcus is offline Member
    Join Date
    Jun 2007
    Rep Power


    To save data in the session you use in the servlet

    Java Code:
    request.getSession().setAttribute("nameobject", object);
    you collect it with:

    Java Code:
    request.getSession().getAttribute("name of object");

Similar Threads

  1. how to create session in jsp
    By sandip_ingle21 in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 04-21-2011, 04:10 AM
  2. session handling
    By priyanka_t in forum JavaServer Pages (JSP) and JSTL
    Replies: 10
    Last Post: 08-11-2009, 01:32 PM
  3. session object
    By 5alive in forum New To Java
    Replies: 1
    Last Post: 06-23-2008, 01:45 AM
  4. session
    By jm_it04 in forum AWT / Swing
    Replies: 0
    Last Post: 03-04-2008, 12:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts