struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Markert <>
Subject Re: Question about the reset() method
Date Thu, 12 Jun 2003 09:40:02 GMT
Hallo Nadja,

as far as I know the intend of the reset method is to handle the
checkbox problem (see mailing today from Kristine). The browser will
only send infos about checked checkboxes. For unchecked checkboxes
nothing is sent. The reset method is called before your action will be
populated with values send from the browser. To solve the checkbox
problem, you set all boolean values to false. If a value really is
true it will be automatically set to true, since this value has been
sent from the browser.

You can also use the reset method to initialize a form with default



NS> Hello everyone,

NS> coudl anyone tell me what the reset() method in ActionForms is actually good
NS> for? Meaning: Does it get called when I use a cancel button or when else?
NS> Does ist get called 'by itself' at all or do I have to make an explicit call
NS> to it when I want to use it?

NS> Greetings,
NS> Nadja

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

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

View raw message