-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Perryn,
Fowler, Perryn wrote: > If I have a form that I want to submit with a POST, I want the > response to this to always be a REDIRECT to a GET. > > I probably want this even in the case of validation failures that > cause the form to be re-displayed, but the validation framework seems > to assume that I would forward directly to the view in this case: Pretty much. Why do you want to redirect after validation failure? In Struts 1 (not sure about S2), you had no choice: you were automatically forwarded to the input forward when validation failed. Is there a specific reason you want to forward? > ie: it stores error information in the current action to be queried > and displayed by tags in the view. If I were to redirect to the view, > this information would be lost. Right. You would have to add some kind of error-conversion code to take all the information out of the request and put it either into the session (which would be a mess) or into the outgoing redirect location in order to pick it up on the other side. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGVDQk9CaO5/Lv0PARAsLhAJsFPVRyeF0+y+z6BwjWtvZCxF4bFQCfQf78 ug0irNhW56Jqu1geooP1sas= =NS3j -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]