Interview Question: What is Action Class?

By: Ash Printer Friendly Format    

Question:What is Action Class?

Answer: The Action Class is part of the Model and is a wrapper around the business logic. The purpose of Action Class is to translate the HttpServletRequest to the business logic. To use the Action, we need to Subclass and overwrite the execute() method. In the Action Class all the database/business processing are done. It is advisable to perform all the database related stuffs in the Action Class. The ActionServlet (commad) passes the parameterized class to Action Form 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 as per the value of the returned ActionForward object.

 

 

 

 



Most Viewed Articles (in Interview )

What types of comments are available in the JSP?

Question: Explain the life-cycle methods in JSP?

What is Collection API?

Interview Question: What is Deployment descriptor?

Interview Question: What is lazy loading?

Question: How is the MVC design pattern used in Struts framework?

What is JSP Scriptlet?

Interview Question: How is the MVC design pattern used in Struts framework?

Interview Question: Where can I get a copy of Struts?

Interview Question: What is EJB client JAR file?

Interview Question: What is Remote client view?

Interview Question: How many EJB Objects are created for a Bean?

Interview Question: What is deployment descriptor?

Interview Question: What is the difference between JavaBean and EJB?

Interview Question: Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?

Latest Articles (in Interview)

Comment on this tutorial