tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avi Deitcher <...@deitcher.net>
Subject Re: forwarding to a remote host
Date Tue, 11 Jul 2006 13:07:00 GMT
Get the params from the request and then populate them in the Post. I
don't know of any automatic method.

Zohar wrote:

> What's the easiest way to transfer all the data from the Request to
> the PostMethod?
>
> ----- Original Message ----- From: "Avi Deitcher" <avi@deitcher.net>
> To: "Tomcat Users List" <users@tomcat.apache.org>
> Sent: Tuesday, July 11, 2006 14:38
> Subject: Re: forwarding to a remote host
>
>
>> Zohar,
>> - In the same host & context, use RequestDispatcher.forward()
>> - In the same host but different context, if cross-context enabled, get
>> the RequestDispatcher for that context then use forward()
>> - Different host entirely, or cross-context not enabled, you will
>> probably need to rebuild the request. I usually use the Jakarta Commons
>> HTTPClient for this. Check out
>> http://jakarta.apache.org/commons/httpclient/
>>
>> Anyone have a better suggestion?
>>
>> Avi
>>
>> Zohar wrote:
>>
>>> Hello list,
>>> I have a servlet that handles POST requests. Sometimes the request
>>> needs to be forwarded to a different servlet, which may be running
>>> on a different server. What is the best way to do that?
>>> Thanks,
>>> Zohar.
>>>
>>>
>>
>> -- 
>> ______________________________
>> Avi Deitcher
>> avi@deitcher.net
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
>
> ---------------------------------------------------------------------
> 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
>

-- 
______________________________
Avi Deitcher
avi@deitcher.net



---------------------------------------------------------------------
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