struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Jouravlev <>
Subject Re: Can one Action Method POST to another?
Date Wed, 09 Nov 2005 17:24:36 GMT
On 11/9/05, sudip shrestha <> 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

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

See details here:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message