Struts Action Class - What is Action Class?

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.
What is ActionServlet?
Struts ActionServlet - ActionServlet is a class in org.apache.struts.action. It plays the role of a controller in the Jakarta Struts Framework...
What is Struts Validator Framework?
Struts Validator Framework - The validation of data, whether on the Client side browser form or on the server side, can be done with the help of Struts Validator Framework...
Explain directory structure for a struts folder.
Struts directory structure - The jsp-files (and html-files) may be placed in the root of the application directory. 'struts-blank' contains this single jsp-file....
Post your comment