struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <>
Subject Re: reset method in ActionForm
Date Tue, 03 Jan 2006 18:38:41 GMT
Reset gets called just before the form is populated and the most common use
is for resetting boolean properties set using checkboxes. This is because if
the checkbox is not "checked" browsers do no submit a value, so the
"population" mechanism doesn't set the property to "false" if the checkbox
is "un-checked".


----- Original Message ----- 
From: "fea jabi" <>
Sent: Tuesday, January 03, 2006 6:22 PM

> When exactly this method has to be used and when does this get called?
> Why do the checkboxes have to be reset?
> Prepopulating the formbean is done in Action class. hence, it's not clear
> me the exact use of using the reset method.
> Thanks.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message