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
What is the purpose of @key annotation annotation?
What is actionservlet?
Explain about the
Who wrote struts?
How duplicate form submission can be controlled in struts?
What is the flow of requests in struts based applications?
What is apache struts vulnerability?
What is interceptor? And life cycle methods of interceptor?
What is the actionform?
What is the purpose of @validations annotation?
What are the custom tags?
Give an alternative way to protect jsp’s with not much features from direct access.
What are different Struts2 tags? How can we use them?
What is Custom Type Converter in Struts2?
What are the action classes in struts?