Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the purpose of action servlet and action?

Answer Posted / k@r/\/@d

Most of whats said is correct...

The class org.apache.struts.action.ActionServlet is called
ActionServlet.This class plays the role of controller. All
the requests to the server goes thorugh the controller. It
is responsible for handling all the requests.


----> (Action is part of Model.) --> Its still a part of
controller as it directs you to the appropriate business
processor class (which is a part of model).

The purupose of Actionclass is to
translate the HttpServletRequest to the business logic. To
use Action we need to subclass and over(RID)e the execute()
method.

all database and business processing are done here. -->
These CAN be done here, but shouldn't as it would defeat the
purpose of having a seperate Model layer i.e. Business
Layer. The request must be directed to a business class
which would process the request, perform the neccesary
Database operations if any, wrap the response in a response
object and send it back to the action class to be directed
to the next view by means of mapping.findForward...

Thats my take on this...

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many struts config file can be created in struts?

899


What do you mean by actionform?

987


What is actionform in struts?

1019


What is the difference between struts and spring? Explain

916


What is the difference between validation.xml and validator-rules.xml files in struts validation framework?

1010


What is difference between actionform and dynaactionform?

1049


What is the purpose of @action annotation?

1029


How many struts config file in a struts application?

922


Does apache struts run on windows?

993


What are inner class and anonymous class?

1002


How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?

2967


What is actioninvocation in struts2?

1031


What is the use of namespace in action mapping in Struts2?

1059


in struts how to use hibernate with struts>

2226


In struts.xml, what does the attribute "method" stands for in the "action" tag?

951