The default reset() method does not do anything, so the fields you do
not change yourself would not be changed. 

The general advice is to use booleans for checkboxes and set them to
false in reset(). 

Reset() is called before the ActionForm is populated from the request,
and would not change any values (unless you are trying to pass the form
between Actions).

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/


> Bjørn Erik Andersson wrote:
> 
> Hello,
> 
> Does anyone have any code examples or information on how to write the
> reset() -method in order to reset only checkboxes in a form (and still
> keep any textbox values etc) ? This to avoid the unselect problems in
> checkboxes using Struts.
> 
> Thanks in advance,
> 
> Bjørn Erik Andersson

Reply via email to