Interview Question: What is Action Class?

By: Ash Viewed: 722 times  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: What is Struts?

Interview Question: Who makes the Struts?

Interview Question: Why do we need Struts?

Interview Question: Does Struts include its own unit tests?

Interview Question: Where can I get help with Struts?

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

Interview Question: If the framework doesn't do what I want, can I request that a feature be added?

Interview Question: Do ActionForms have to be true JavaBeans?

Interview Question: What is Remote client view?

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?

What is Deployment Descriptor?

What is similarities/difference between an Abstract class and Interface?

What are all the different scope values for the tag?

What is expression in JSP?

What types of comments are available in the JSP?

Latest Articles (in Interview)

Comment on this tutorial