struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: reset
Date Thu, 01 Feb 2001 21:50:28 GMT
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

View raw message