On Tue, Aug 12, 2008 at 3:11 AM, Jeng Yu <[EMAIL PROTECTED]> wrote:

> The servlet (in Appserver A) then processes part of
> the
> form input in the doGet method and then needs to send
> the rest of the form to another web server
> (Appserver B) to process and return the results
> (response code or something) to the calling servlet
> which is waiting for it. The servlet receives the
> results and based on the results, sends
> response back to the client, all within the same doGet
> method.
>
> Is this doable, and What's the best way to go about
> it?

It's certainly doable -- it's the standard use case for submitting an
online order to a credit-card-authorization gateway, among others.

Look at the JavaDoc for  java.net.Http(s)URLConnection.

HTH,
-- 
Hassan Schroeder ------------------------ [EMAIL PROTECTED]

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to