Kairul Nizam wrote:
>
> Can it be
> done in the HTTP method using the response and request
> object where the former servlet(getDataServlet) will
> return the result of the query to the calling
> servlet(transformServlet)?
>

 Yes, it's possible. Do a search of the archives
(linked off the bottom of every message to this list)
for some hints, and also check out the Java Tutorial
networking chapter at:

 <URL:http://java.sun.com/docs/books/tutorial/>

 I'm not sure of the exact keywords to use in the
archive search, but you'll want to do it exactly the
same way as you do applet-servlet communication, so
that gives you a starting point.

 You'll need to do some plumbing to hook up the
incoming request to servlet A to the outgoing
URLConnection to servlet B, and the other way
round, but it shouldn't be anything too hairy.

 Or you could use RMI, or CORBA. Or move things
around and use a remote JDBC connection. Or lots
of other things.

 (Just in case it wasn't obvious: a full answer to
this question is considerably more than a single
message worth of information, so it's much better
all around to give a couple of good references than
to give a short, partial, confusing answer. Duh.)


-cks

___________________________________________________________________________
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