You can't!!

All servlets/JSPs that are part of an application share a single
ServletContext (the 'application' object). All Sessions are scope to that
application. If you want to share data across servlet contexts you'll need
to use an external method (files or an RDBMS)

Kevin Jones
DevelopMentor
www.develop.com

> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Ade
> Permana
> Sent: 13 September 2000 05:55
> To: [EMAIL PROTECTED]
> Subject: Http Session
>
>
> Dear Guy's
>    I got a problem when using HTTP session on Sun j2ee server.
> I trying to bound an object to a session attribut using
> setAttribute method
> of HttpSession object.
>
> The object can be accessed on every page that deployed on the same context
> with the page that set the attribute.
> But the page that deployed using different context, unable to fetch the
> attribute that has already been bound to the session.
>
> Could any tell me how to get a session attribute using
> HttpSession.getAttribute method to access the object that has
> been bound to the session by a page on the other context.
>
> regards
> AdeP
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to