| View previous topic :: View next topic |
| Author |
Message |
dpkkr Site Admin
Joined: 10 Apr 2005 Posts: 1314
|
Posted: Sun Feb 05, 2006 4:01 pm Post subject: What is Action Class? |
|
|
| 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. |
|
| Back to top |
|
 |
dpkkr Site Admin
Joined: 10 Apr 2005 Posts: 1314
|
Posted: Sun Feb 05, 2006 4:02 pm Post subject: What is ActionForm? |
|
|
| An ActionForm is a JavaBean that extends org.apache.struts.action.ActionForm. ActionForm maintains the session state for web application and the ActionForm object is automatically populated on the server side with data entered from a form on the client side. |
|
| Back to top |
|
 |
|