File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Session  object within two servlets and jsp in the single application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session  object within two servlets and jsp in the single application" Watch "Session  object within two servlets and jsp in the single application" New topic
Author

Session object within two servlets and jsp in the single application

kittu basant
Greenhorn

Joined: May 17, 2008
Posts: 11
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


regards,<br />kittu basant
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40027
    
  28
Please check your private messages for an important administrative message.
arulk pillai
Author
Ranch Hand

Joined: May 31, 2007
Posts: 3274
Session scope is available across multiple requests within the same context.


500+ Java Interview Questions and Answers | Java job hunting know how & Java resumes
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40027
    
  28
"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

Joined: May 17, 2008
Posts: 11
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session object within two servlets and jsp in the single application