Either:
request.setAttribute("name", object);
servletContext.getRequestDispatcher("/servlets/OtherServlet").forward(reques
t, response);

Or:
request.getSession().putValue("name", object");
if you want to use it in another request...

/Magnus Stenman
Orion WebServer - http://orion.evermind.net

-----Original Message-----
From:   A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology. [mailto:[EMAIL PROTECTED]] On Behalf Of
Carlo Indolfi
Sent:   den 29 april 1999 16:02
To:     [EMAIL PROTECTED]
Subject:        Can I pass an object between two servlets??

Hi to everyone :-)

This is the first time i write to this Mailing List!
I have a question. Developping an application Servlet-based i
need to be able to pass an object (a Resultser in my case) between
two servlet. Is it possible?? If yes, how??

Thank's in advance
Regards
Carlo

___________________________________________________________________________
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