who will run the execute method in struts?




Answers were Sorted based on User's Feedback



who will run the execute method in struts?..

Answer / devendar rao marru

request processor

Is This Answer Correct ?    13 Yes 1 No

who will run the execute method in struts?..

Answer / sunny goyal

The RequestProcessor instantiates the Action class
specified in the ActionMapping (struts-config.xml) and
invokes the execute() method on the Action instance

Is This Answer Correct ?    8 Yes 0 No

who will run the execute method in struts?..

Answer / ratheeshnellikkal

Action Servlet

Is This Answer Correct ?    11 Yes 5 No




who will run the execute method in struts?..

Answer / vikram naidu

protected ActionForward
processActionPerform(request,response,action,form,mapping)
throws IOException, ServletException {
try {
return (action.execute(mapping, form, request,
response));
} catch (Exception e) {
return (processException(request, response, e,
form, mapping));
}
}

this is the logic used in RequestProcessor class to call the
execute() method through ActionServlet. B'coz ActionServlet
is the front controller class and in this class only we are
calling RequestProcessor class. So ActionSerlvet is calling
execute() method through RequestProcessor class.

Thankyou.

Is This Answer Correct ?    6 Yes 0 No

who will run the execute method in struts?..

Answer / sainath

Request Processor will run the execute() in struts.

Is This Answer Correct ?    5 Yes 0 No

who will run the execute method in struts?..

Answer / bhaskar j

r u sure Ratheeshnellikkal?...

it may be action class i think

Is This Answer Correct ?    7 Yes 3 No

who will run the execute method in struts?..

Answer / sudhir

An Action is an adapter between the contents of an incoming
HTTP request and the corresponding business logic that
should be executed to process this request. The controller
(RequestProcessor) will select an appropriate Action for
each request, create an instance (if necessary), and call
the execute method.

Is This Answer Correct ?    4 Yes 0 No

who will run the execute method in struts?..

Answer / kiran

Action servlet in Request.processor()method will be execute the execute()method

Is This Answer Correct ?    5 Yes 2 No

who will run the execute method in struts?..

Answer / kishore

Request Processor....

Is This Answer Correct ?    2 Yes 0 No

who will run the execute method in struts?..

Answer / raghavendra

ActionServlet is nothing but the struts framework.

The ActionServlet cretaes the formbean object and if
required creates the action class and calls the validate
method(if validate = true in struts-config.xml).

If any errors returned by validate method, it forwards the
request to the resourse specified in input attribute.

If no errors returned by validate method,struts execute the
execute method.

Is This Answer Correct ?    6 Yes 5 No

Post New Answer



More Struts Interview Questions

1.can we transfer a request from one struts application to another struts application? 2. how many types of action servlets r there what r they

0 Answers   TCS,


wahts the diif between Mvc1 and Mvc2?

3 Answers   Wipro,


What is the use of ActionErrors in Struts

1 Answers  


what is the difference between SAX Parser and DOM Parser??

14 Answers   Goldman Sachs, Hidden Brains, HP, HCL, Cap Gemini,


Is Struts Action class Thread Safe?

14 Answers   Wipro,






what is the main reason for developing struts? what is advantages over Basic MVC architecture based JAVA Application?

1 Answers  


how will you view ur jsp page to the client by using properties file?

2 Answers   Wipro,


Difference between JSF Framework and Struts Framework.

13 Answers   TCS, IBM, Accenture, BSS,


How to explain struts work flow

12 Answers   iGate, CSS, TCS, iFlex, mpower,


Which parser is used in Struts to parse the Structconfig.xml file.

21 Answers   iFlex,


wat happen when the connection is nt closed in jdbc n what vl happen when i interchange in executequery n execute statements

2 Answers  


why we are using vo,dao and dto design patterns in struts framework

3 Answers   Wipro,






Categories