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
(http://www.mail-archive.com/struts-user@jakarta.apache.org/msg78766.html)
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).

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to