struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <>
Subject Re: forward to an extental URL
Date Tue, 15 Nov 2005 00:24:48 GMT
Ming Li wrote:
> I saw there was a similar post in this forum, but the
> solutions don't work for me. 
> What I want to do is getting a form posted to an
> action, after some processing then forward to an
> external URL (for payment process). 
> I tried the solutions suggested in this forum
> (
> by adding "redirect = true" and contextRelative=false"
> in my action forward as follows:
> <forward name="checkout" path="https://... ..."
> redirect="true" contextRelative="false">
> What I get is an 404 error. Also, my concern about
> redirect is if the form data will be lost.

A 404 from the remote server (indicating you have the URL wrong), or a 
404 from your Struts application (indicating the redirect isn't going to 
the remote server at all)?

You're correct that the request to the remote server will not contain 
any form data. If you need to include query parameters in that request, 
you'll need to add them to the URL you redirect to, as query parameters 
(see ActionRedirect in Struts 1.3 and later for an easy way to 
accomplish that).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message