This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Session object within two servlets and jsp in the single application

 
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
 
Marshal
Posts: 66154
250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check your private messages for an important administrative message.
 
Author
Posts: 3443
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Session scope is available across multiple requests within the same context.
 
Campbell Ritchie
Marshal
Posts: 66154
250
  • 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?
 
incandescent light gives off an efficient form of heat. You must be THIS smart to ride this ride. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!