Yes, save them in a session.
for example i you have an User-object u, and a session s, then:
s.putAttribute("User", u);
then i the servlet you want to use the object in, you do
User u = s.getAttribute("User");
/D
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Daniel Liu
Sent: den 15 februari 2001 16:38
To: [EMAIL PROTECTED]
Subject: [SERVLET-INTEREST] Share objects among servlets
Is there any way that shares objects among different servlets?
Thanks.
___________________________________________________________________________
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