http://www.roseindia.net
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Please visit our lastest forum and start dicussing the topics
What is Action Class?

 
Post new topic   Reply to topic    http://www.roseindia.net Forum Index -> Struts Interview Questions
View previous topic :: View next topic  
Author Message
dpkkr
Site Admin


Joined: 10 Apr 2005
Posts: 1314

PostPosted: Sun Feb 05, 2006 4:01 pm    Post subject: What is Action Class? Reply with quote

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
View user's profile Send private message Send e-mail
dpkkr
Site Admin


Joined: 10 Apr 2005
Posts: 1314

PostPosted: Sun Feb 05, 2006 4:02 pm    Post subject: What is ActionForm? Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    http://www.roseindia.net Forum Index -> Struts Interview Questions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group