struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Husted <>
Subject Re: reset-method
Date Tue, 10 Jul 2001 10:15:03 GMT
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.

> 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

View raw message