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: Do you have to credit Struts on your own website?

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: Can i map more than one table in a CMP?

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

Interview Question: What is abstract schema?

What is J2EE?

Tell me something about J2EE component?

What do you understand by a container?

What is difference between Java Bean and Enterprise Java Bean?

Can Entity Beans have no create() methods?

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

Explain the new Features of JDBC 2.0 Core API?

What types of comments are available in the JSP?

Latest Articles (in Interview)

Comment on this tutorial