On 1/5/07, Information Guzzler <[EMAIL PROTECTED]> wrote:
Hi,
Is there a way to use ActionRedirect(Struts 1.2.7 & later) with POST
parameters and not GET.
No. Currently Struts 1.x is able either to forward (in-server) or to
redirect (through browser) a request based on "redirect" flag. Setting
"redirect" to false results in forwarding, setting "redirect" to true
results in 302 redirection. With 302 HTTP response code most browsers
redirect with GET without confirmation.
If you want to redirect POST with POST, you need to return 307 HTTP
response code from Struts instead of 302. You can do it yourself. In
fact, ActionRedirect is not need to perform a redirect.
Remember, that not all browsers correctly handle 307 response code.
Also, if a browser DOES correctly handle this code, a user would have
to confirm redirection. Do you really want this?
See more here: http://ppewww.physics.gla.ac.uk/~flavell/www/post-redirect.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]