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

What is action servlet in struts?

924


What is the use of lookupdispatchaction?

976


What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?

967


Are struts thread safe?

929


What is strut action mapping?

943


What are best practices to follow while developing Struts2 application?

979


What is struts2 framework?

897


What do you mean by action errors and what are the results they force?

1008


Explain about struts dispatch action?

940


What is the purpose of @key annotation annotation?

1043


What is the purpose of @stringlengthfieldvalidator annotation?

1056


What is struts and springs in java?

990


What is the purpose of @results?

967


What are the 5 constants of action interface?

979


What is defeult result type?

1018