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 the
On Fri, 20 Aug 2004 17:19:24 +0200, Axel Seinsche
<[EMAIL PROTECTED]> wrote:
> 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 validat
> -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 exact
ribute(Action.ERROR_KEY, errores, PageContext.REQUEST_SCOPE);
}
return EVAL_PAGE;
}
}
And in the JSP, use this tags:
Disclaimer: we use Struts 1.0. This of course could be enhaced, for example,
just extending ErrorsTag.
Cheers.
Guillermo.
>-- Mensaje original --
>Reply-To: &q
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 in
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 an
Hi all,
in my struts application I have 4 forms which have to be filled to store an item in
the database. All 4 forms are inherited from one abstract form class. As form 3
depends on data from 1 I didn't find a better solution, but it works.
The problem is the following. When I submit form 4 I
7 matches
Mail list logo