Mahesh -

Yes it is. "You can chain multiple servlets together in a particular
order. The output from one servlet is passed as input to the next
servlet in the chain; the output from the last servlet in the chain is
returned to the browser."

[excerpt from the Karl Moss, Java Servlets book.]

You would use the ServletInputStream & ServletOutputStream classes to
do this, and as far as passing objects via these streams, check the
"Communicating w/ Object Serialization" section of the article located
at: http://www.j-nine.com/pubs/applet2servlet/Applet2Servlet.html.

As far as the servlet to servlet connection, I will send you the
included source files in a separate email (so I don't inundate the
maillist server) demonstrating this from the book I referred to. Look
for it following this message.

Mike Drummond







----------
From: mpatil
To: SERVLET-INTEREST
Subject: Servlet to Servlet
Date: Thursday, June 03, 1999 6:33AM

I'am new to Servlets....Is it possible for two servlets to communicate with
each other and pass Objects through streams....
If yes can you tell me how.???
Thanks
Mahesh

___________________________________________________________________________
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