Programming Tutorials

Interview Question: What is Action Class?

By: Ash in Interview Tutorials on 2008-08-13  

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.

 

 

 

 





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Interview )

What are implicit Objects available to the JSP Page?

What do you understand by JTA and JTS?

Interview Question: What is Action Class?

What are types of J2EE clients?

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

Question: What is a Hidden Comment in JSP?

What is the difference between Session Bean and Entity Bean?

What is JSP Output Comments?

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?

Question: Difference between forward and sendRedirect in JSP?

What do you understand by a container in J2EE?

What are the contents of web module?

Name the containers which uses Border Layout as their default layout?

Differentiate between .ear, .jar and .war files.

Interview Question: What is EJB client JAR file?

Latest Articles (in Interview)