What is ActionForm?ActionForm :
- ActionForm is a java bean that associates one or more ActionMappings. The bean is initialized from the corresponding parameters of requests well before the Action.execute method is invoked.
- The bean’s validate() method will be called, before the execution of execute() method. This process is done before the bean properties have been populated. The verification of properties submitted by the user input form is validated by the validate() method. If the method finds problems, an error messages object those are encapsulated the problems will be returned and the controller servlet will return the control back to the input form. If not , the validate() method returns null, which is the indication of accepting everything, and the Action.execute method should be invoked.
What is ActionForm?- An ActionForm is a JavaBean that extends org.apache.struts.action.ActionForm.
- It maintains the session state for web application.
- The ActionForm object is populates automatically on the server side when data is entered on a client side.