can do the complete validation.
The ActionErrors are filled correctly, but I return back to Form 4 (of course). I then
did a logic:messagesPresent and inside a redirect to page where the error is. The
redirect works fine, but the errors get lost on this redirect. Can I somehow preserve
my
back to Form 4 (of course). I then did a
logic:messagesPresent and inside a redirect to page where the error is. The redirect
works fine, but the errors get lost on this redirect. Can I somehow preserve my errors when
redirecting or can I do this without a redirect. As the ActionClass isn't
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
Struts 1.0. This of course could be enhaced, for example,
just extending ErrorsTag.
Cheers.
Guillermo.
-- Mensaje original --
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
From: Axel Seinsche [EMAIL PROTECTED]
Subject: errors get lost on redirect
To:Struts Users Mailing List [EMAIL
-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
6 matches
Mail list logo