struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ming Li <>
Subject Re: forward to an extental URL
Date Tue, 15 Nov 2005 14:58:50 GMT
Hi Laurie, thank you for the reply. The 404 must  come from my struts action forward. Since
if I post the form directly  to the external URL, not from the action, everything is fine.

Laurie Harper <> wrote:  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:
> 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:

 Yahoo! FareChase - Search multiple travel sites in one click.  
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message