Is there a built-in mechanism in Struts which allows a Redirect with an
HTTP POST method instead of GET method?

 

Here is my requirement:

I have two separate Application servers.  The server A will host my html
form.

When I submit my form, I want to go in an Action class of my server A,
which will prepare a new form (different one), to be sent out to server
B.  

In order to pass over the control the server B, from now on, which will
response to the browser, to render the end result.

 

Here is a sequence diagram to make it clearer:

 

Browser                       Server A
Server B

 

----------------post------------->

                                    >--prepare new form--<

<--------------redirect----------

--------------------------------------------------------------------new
form---->

<-------http response
(rendering)-----------------------------------------

 

 

My question is:

How can I create a new FORM to be POSTed, from Struts, and REDIRECT it
to the browser?  

The browser will, for sure have to sent that new form to the other
server.

 

Alain

 

 

Reply via email to