This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android 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: 38057
    
  22
Please check your private messages for an important administrative message.
arulk pillai
Author
Ranch Hand

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


Java Interview Questions and Answers Blog | Amazon.com profile | Java Interview Books
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38057
    
  22
"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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Session object within two servlets and jsp in the single application
 
Similar Threads
servlet to bean to jsp
beans in jsp
Passing more than one object between jsp and servlet
MVC 1 and MVC 2
Passing an object as a part of Form Post - Possible?