What is Action Class?- The Action is a part of the controller. Action Class is used to translate the HttpServletRequest to the business logic. To do this we need to overwrite the execute() method.
- The ActionServlet (command) passes the parameterized class to Action Form using the execute() method.
- The action should receive the request, call business objects and then determine the further step.
- The business objects could be handed to the action at runtime thus removing any dependencies on the model.
- The return type of the execute method is ActionForward. It is used by the Struts Framework to forward the request to the file as per the value of the returned ActionForward object.