who will run the execute method in struts?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is struts.devmode?

577


Can you explain struts validator framework?

578


How do I install struts?

566


Do you need an alignment after replacing struts?

526


How to use forward action to restrict a strut application to mvc?

597






List some bundled validators?

574


Difference between struts and spring?

583


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

578


What is the purpose of @expressionvalidator annotation?

594


Do I have to credit struts on my own website?

537


What is the purpose of struct-config.xml in struct2?

565


How the flow of various requests happens in struts application?

536


What is difference between struts1 and struts2?

508


How nested beans can be used in Struts applications?

552


Which interceptor is responsible for i18n support?

524