I am new to Struts. I have some questions that may be simple to you. (1) How do you validate user input in Struts? (2) What uniquely identifies an Action element, for example, name, path or something else? (3) Does the reset in ActionForm set properties to the initial values or to the request parameters?
Joined: Sep 02, 2004
You can validate in the validate method and return an error if the data is invalid.
The reset method should be used to reset checkboxes only as their state is only forwarded on a submit if they are checked.