What is ActionForm?

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.
Difference between Action and DispatchAction classes
Difference between Action and DispatchAction classes - Grouping related actions into one class is possible using DispatchAction class.....
What is switch action and forwardAction in struts?
Switch action and forwardAction - A SwitchAction is like an Action which switches between modules and forwards the control to the URI that is specified in the new module. ...
What is LookupDispatch Action?
What is LookupDispatch Action? - The LookupDispatch Action dispatches to the subclass mapped execute method....
Post your comment