struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Jouravlev <jmi...@gmail.com>
Subject Re: Can one Action Method POST to another?
Date Wed, 09 Nov 2005 17:24:36 GMT
On 11/9/05, sudip shrestha <sudipx@gmail.com> wrote:
> I have situation here where one action method need to do a POST to another
> method of a DispatchAction implementing class. I need to know if this is
> possible.

Redirect with 307 code. HttpResponse.sendRedirect() sets response
header to 302 by default and you cannot change header after response
was written, so you need to forge response with proper header
yourself.

Most modern browsers understand 307 response, it is defined in HTTP
1.1 spec (1999, baby!)

See details here: http://ppewww.ph.gla.ac.uk/%7Eflavell/www/post-redirect.html

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message