Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session object within two servlets and jsp in the single application

 
kittu basant
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have created a http session object in a servlet which consists of List object (which has bean objects inside it).
I would be using this session object for carrying the list object to retrieve the values in jsp as per bean objects in the list.
But for a new enchanment, now i would require the bean object to retreive the data in other servlet .
So lett me know how an i use the same session object in the two servlets and the jsp.

fast response will be appreciated...

thank you
Kite
 
Campbell Ritchie
Sheriff
Pie
Posts: 48968
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check your private messages for an important administrative message.
 
arulk pillai
Author
Ranch Hand
Posts: 3387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Session scope is available across multiple requests within the same context.
 
Campbell Ritchie
Sheriff
Pie
Posts: 48968
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Kite b" if you persist in ignoring the naming policy your account will be closed. Please correct your displayed name ASAP.

CR
 
kittu basant
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is that i have to get the session and then use it for instance
HttpSession session1= request.getSession(false)
if not the case.. let me know how?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic