what is the purpose of action servlet and action?




Answers were Sorted based on User's Feedback



what is the purpose of action servlet and action?..

Answer / arun prasanth

Action Servlet is backbone of struts Framework.It is the
main ControllerComponent
Action class contain userlogic .It return the next View
to the Framework

Is This Answer Correct ?    17 Yes 5 No

what is the purpose of action servlet and action?..

Answer / cokekrish

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. The purupose of Actionclass is to
translate the HttpServletRequest to the business logic. To
use Action we need to subclass and overwrite the execute()
method. all database and business processing are done here.

Is This Answer Correct ?    17 Yes 5 No

what is the purpose of action servlet and action?..

Answer / 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




what is the purpose of action servlet and action?..

Answer / pkr_reddy

action servlet is responsible to identify the request and
receive the request.this is initial starting point to the
communication and justify the purpose of the communication
across the diff environments.
org.apachi.struts.action.actionsevlet;

action classes is define to be the user.it is controller
where we provide the user defined controller logical
transactions which allways listen to actionservlet.

Is This Answer Correct ?    9 Yes 7 No

what is the purpose of action servlet and action?..

Answer / venu

ActionServlet is the builtin servlet. ActionServlet nothing
but a controller.ActionServlet provided by the struts
Framework.ActionServlet having the following inbuilt design
patterens.
1 singleton designpatteren.
2.FrontController
3.ApplicationController
4.MVC
5.Data Transfer object/value object
6.Inversion of controll/Dependency injection

ActionServlet take the multiple request but it creats
single instance for that requests by using singleton
designpatteren.

Is This Answer Correct ?    6 Yes 4 No

Post New Answer



More Struts Interview Questions

what is the purpose of load_on_startup entry in struts- config.xml?

8 Answers   Satyam,


kindly can any one post for me portlet,hibernate,spring example code and configuration,and some related tutorials plz its urgent for me....thanks in advance ............

1 Answers  


What is Request Dispatcher and What is reuest Processor??

2 Answers  


how to write the configuration file of struts application if any one had simple struts application please it to me

1 Answers  


what is use of assert keyword in java..?

1 Answers  






how canu done chechin and check out of u r project using with sample examples?

8 Answers   CTS, Logica CMG,


Difference between JSF Framework and Struts Framework.

13 Answers   TCS, IBM, Accenture, BSS,


What are Struts properties?

2 Answers   VI eTrans,


If we close the browser,when the specific user session is active.Again if we open browse how to retrive it same user??what code i have to da???

5 Answers   TCS,


its a ActionForm controller or model?

16 Answers   Patni, TCS, Wipro,


I facing problems while explaining project details in the interview...... can any tell complete project architecture that followed in companies

1 Answers   ID,


how to write my own Action servlet by extending pre-defined Action servlet in struts config.

2 Answers   Sony,






Categories