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 )

Question: What is a Hidden Comment in JSP?

What types of comments are available in the JSP?

Tell me something about J2EE component?

The output of System.out.println(5<<2) in Java

What is Collection API?

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

Interview Question: Do ActionForms have to be true JavaBeans?

What is the difference between Session Bean and Entity Bean?

Why J2EE is suitable for the development of distributed multi-tiered enterprise applications?

Interview Question: What is Action Class?

What is the difference between jsp:include page and @ include file?

Interview Question: What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

The output of System.out.println(5>>2) in Java

What do you understand by JTA and JTS?

Interview Question: What is the difference between EAR, JAR and WAR file?

Latest Articles (in Interview)