Hello this is my problem
in my servlet I set a new session attribute
request.getSession().setAttribute("AAA", new Aaa() );
now I've a Xxx class that has access to the Application Context. In my
Xxx class so I've a
private ServletContext context;
My Xxx class takes in input a String. this string is the sessionId.
Now my question is: with a sessionId string and the attribute name
("AAA") can i retrieve in my Xxx class the bean stored by the
request.getSession().setAttribute(..) in the appContext??
thanks a lot
martina
www.pulpjava.com - 09 Nov 2006 17:00 GMT
If you're asking if you can get access to data stored in another users
session, the answer is no.
The Session is mapped to a single user, and a single user only.
The ServletContext is global, and can be accessed by any user accessing
your web appliation.
Cheers!
-Cameron McKenzie www.pulpjava.com
Free SCJA Certification Questions: www.scja.com
Free J2EE and WebSphere Tutorials: www.mcnz.com
Free Mock WebSphere Certification Exams: www.examscam.com
> Hello this is my problem
> in my servlet I set a new session attribute
[quoted text clipped - 12 lines]
> thanks a lot
> martina