tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hassan Schroeder" <hassan.schroe...@gmail.com>
Subject Re: Chaining Request Processing
Date Tue, 12 Aug 2008 14:33:34 GMT
On Tue, Aug 12, 2008 at 3:11 AM, Jeng Yu <jengyu2007@yahoo.co.uk> 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 ------------------------ hassan.schroeder@gmail.com

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


Mime
View raw message