Sure it's possible.

If you want to send ResultSet from AServlet to BServlet:

In AServlet put ResultSet into request object and do
servletContext.getRequestDispatcher("BServlet").forward(request,response);
(Remember not to get PrintWriter before you call this)

This will forward the request on to another servlet.

You can also do .include (instead of forward).  In this scenario the control
will come back to AServlet after output/processing of BServlet is done.

dav.e

Carlo Indolfi wrote:

> 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

--
David Mossakowski        [EMAIL PROTECTED]
http://www.dwdog.com/styk      212.310.7275

"I don't sit idly by, I'm planning a big surprise"
F         U         G         A        Z        I

___________________________________________________________________________
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