thank you very much for your answer!
But when I validate and I've have a error
I would like that the wrong typing is still
displayed that the user can see what was wrong!
Only after the reset button is clicked the values should be
cleared!
Is there a good possibility?


Ciao!




---------- Initial Header -----------

>From      : "Wojciech Ciesielski" [EMAIL PROTECTED]
To          : "Struts Users Mailing List" user@struts.apache.org
Cc          :
Date      : Mon, 19 Sep 2005 12:41:50 +0200
Subject : RE: HTML-Reset-botton works only before submit







> > So my question is:
> >
> > Do I jave to use a javascript function?
> > Is it possible to map <html:reset value="reset"/>
> > with the reset-method in the ActionForm?
> > I didn't manage this.Thanks for any advice
> >
> > Nice greetings
>
> You need to reset form - after submiting form instance with data is still in
> the request when it's forwarded to form...
>
> There are several solutions:
> If you validate manually (by calling validate() method within action):
> 1. call form's reset() method if validation fails
> or
> 2. set redirect=yes for forward mapping leading from form validation action
> to form displaying action
>
> If you validate it by extending ValidatorForm - add something like this to
> your form's validate method:
>
> ActionErrors toRet = super.validate();
> If(!toRet.isEmpty()) reset();
> Return toRet;
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>











---------- Initial Header -----------

>From      : "Wojciech Ciesielski" [EMAIL PROTECTED]
To          : "Struts Users Mailing List" user@struts.apache.org
Cc          :
Date      : Mon, 19 Sep 2005 12:41:50 +0200
Subject : RE: HTML-Reset-botton works only before submit







> > So my question is:
> >
> > Do I jave to use a javascript function?
> > Is it possible to map <html:reset value="reset"/>
> > with the reset-method in the ActionForm?
> > I didn't manage this.Thanks for any advice
> >
> > Nice greetings
>
> You need to reset form - after submiting form instance with data is still in
> the request when it's forwarded to form...
>
> There are several solutions:
> If you validate manually (by calling validate() method within action):
> 1. call form's reset() method if validation fails
> or
> 2. set redirect=yes for forward mapping leading from form validation action
> to form displaying action
>
> If you validate it by extending ValidatorForm - add something like this to
> your form's validate method:
> 
> ActionErrors toRet = super.validate();
> If(!toRet.isEmpty()) reset();
> Return toRet;
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to