What is the ActionForm and what are important methods in ActionForm?
ActionForm is javabean which represents the form inputs containing the request parameters from the View referencing the Action bean.
The important methods of ActionForm are : validate() & reset().
validate() : Used to validate properties after they have been populated; Called before FormBean is handed to Action. Returns a collection of ActionError as ActionErrors. Following is the method signature for the validate() method.
ActionErrors validate(ActionMapping mapping,HttpServletRequest request)
reset(): reset() method is called by Struts Framework with each request that uses the defined ActionForm. The purpose of this method is to reset all of the ActionForm's data members prior to the new request values being set.