I don't understand exactly why you are doing the redirect? Why not just
set the input attribute to be the page you are redirecting to ... then
Struts will forward to it when validation fails.
Axel Seinsche wrote:
Hi all,
in my struts application I have 4 forms which have to be filled to store
Bill Siggelkow schrieb:
I don't understand exactly why you are doing the redirect? Why not
just set the input attribute to be the page you are redirecting to ...
then Struts will forward to it when validation fails.
Can I set the input attribute in my Java Code? I thought I have to
define it
-Original Message-
From: Axel Seinsche [mailto:[EMAIL PROTECTED]
Sent: Friday, August 20, 2004 8:19 AM
To: Struts Users Mailing List
Subject: Re: errors get lost on redirect
Bill Siggelkow schrieb:
I don't understand exactly why you are doing the redirect? Why not
just
Hubert Rabago schrieb:
Well, not really set the input, but you can direct the request to the
correct one in your java code.
First off, set validate=false on the action.
Then, in your action, call the form's validate() yourself.
Lastly, if there are validation errors, call saveErrors() to save
4 matches
Mail list logo