Struts%20Interview%20Questions%20and%20Answers
Question: What is an Action Class?Answer: The ?Action Class? is part of the ?Model? and is a wrapper around the business logic.The purpose of the ?Action Class? is to translate the HttpServletRequest to the business logic. To use the ?Action?, we need to subclass and overwrite the execute() method. All the database and business processing is done in the ?Action? class. It is advisable to perform all the database related work in the ?Action? class. The ActionServlet (command) passes the parameterized class to ActionForm using the execute() method. The return type of the execute method is ActionForward which is used by the Struts Framework to forward the request to the file according to the value of the returned ActionForward object. |
Is it helpful?
Yes
No
Most helpful rated by users:
- What is Struts?
- What helpers in the form of JSP pages are provided in Struts framework?
- How is the MVC design pattern used in Struts framework?
- Who makes the Struts?
- Why it called Struts?