This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 43950
    
  33
Please check your private messages for an important administrative message.
arulk pillai
Author
Ranch Hand

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


[Java-Success.com] | [Java job hunting know how] | [Java resumes]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43950
    
  33
"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?
 
Have you checked out Aspose?
 
subject: Session object within two servlets and jsp in the single application
 
It's not a secret anymore!