struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "St-Pierre, Alain" <alain.st-pie...@cgi.com>
Subject Redirect with a POST instead of a GET
Date Thu, 23 Feb 2006 16:51:08 GMT
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

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message