You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by John Hunt <te...@yahoo.com> on 2001/02/01 22:33:59 UTC

reset

Action class calls reset of the form bean. Can we
explicitly call that method in the Action class.

Thanks
Hunt

__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Re: reset

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
John Hunt wrote:

> Action class calls reset of the form bean. Can we
> explicitly call that method in the Action class.
>

Actually, the controller servlet calls reset() before it calls all the
property setters that correspond to your input fields.

You can certainly call this method from within an action if you want
to.  A typical scenario would be when you've programmed reset() to set
default values for all the properties, so you can set your form bean up
for the next entry screen.

>
> Thanks
> Hunt
>

Craig McClanahan