Describe Validate() and reset() methods.
These are the two important method
Validate() Method: this method is used to validate the properties after they are explored by the application.
Validate method is Called before FormBean is handed to Action.
This method returns a collection of ActionError.
Syntax of Validate() Method is as follows:-
public ActionErrors validate(ActionMapping mapping,HttpServletRequest request)
Reset() Method: this method is called by the Struts Framework with each request that uses the defined ActionForm.
Used to reset all the data from the ActionForm
Syntax of Reset() Method is as follows:
public void reset() {}
Read More →