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 the purpose of @typeconversion annotation annotation?

632


What is the purpose of @urlvalidator annotation?

633


Which design pattern is implemented by Struts2 interceptors?

651


What is struts2 namespace?

593


Define struts?

714






Which configuration file is used for storing jsp configuration information in struts?

637


How you will make available any message resources definitions file to the struts framework environment?

631


Give an alternative way to protect jsp’s with not much features from direct access.

638


What is struts and why it is used?

589


What is difference between struts1 and struts2?

581


In how many ways duplicate form submission can occurs?

669


What are the struts2 error message keys that can come during file uploading process?

694


What is Struts2?

719


How struts2 supports internationalization?

738


Explain about logic match tag?

666