A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Session Servlet to servlet
Joined: May 22, 2001
Mar 25, 2003 11:57:00
I hv 2
, creating a session in one
n need to call the session value in other second servlet.
it is workin out with getValue() n putValue().. can you pls provide me sample code.
Joined: Feb 10, 2001
Mar 25, 2003 22:08:00
Hope this helps u
getAttribute returns Object hence the cast!!!
All desirable things in life are either illegal, banned, expensive or married to someone else !!!
Author and all-around good cowpoke
Joined: Mar 22, 2000
Mar 26, 2003 09:56:00
Note that both servlets need to be in the same "web application" or they can't share the session.
I agree. Here's the link:
subject: Session Servlet to servlet
Acessing dynamically generated session scoped attributes in JSP
How to invalidate session on the basis of session ID in servlet
what is the default session of servlet ?
ssession doesn't seem to be storing/holding object on server-works local
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015