- ActionForm class provides a validate() method hook that can be overridden by subclasses to perform validations on incoming form data.
- The validate() method hook gets called after a Form Bean has been populated with incoming form data.
- validate() method has return type ActionErrors
reset():
- ActionForm class has a reset() method that subclasses can override.
- The method is a hook that gets called before FormBean is populated with request data from an HTML form.
- Using this reset() method, all the form fields will be reset.i.e..Unchecking the check boxes, making the text fileds empty..etc
- public void reset() {}
No comments:
Post a Comment