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 )

Interview Question: Is Struts compatible with other Java technologies?

Interview Question: Who wrote Struts?

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

Interview Question: How do I install Struts?

Interview Question: Why aren't the Struts tags maintained as part of the Jakarta Taglibs project ?

Interview Question: What is ActionServlet?

Interview Question: Why are some of the class and element names counter-intuitive?

Interview Question: What is EJB container?

Interview Question: What is Deployment descriptor?

Interview Question: What is EJB client JAR file?

Interview Question: What is Local client view in EJB?

Interview Question: What is Remote client view?

Interview Question: Can I invoke Runtime.gc() in an EJB?

Interview Question: Why does EJB needs two interfaces(Home and Remote Interface)?

Interview Question: What is the difference between ejbCreate() and ejbPostCreate?

Latest Articles (in Interview)

Comment on this tutorial