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
How you will make available any message resources definitions file to the struts framework environment?
What does execandwait interceptor?
What are different ways to create Action classes in Struts2?
What does action do in struts?
Are the struts tags xhtml compliant ?
What is token used for?
What is the purpose of redirect result type?
What is the purpose of @beforeresult annotation?
Can we use struts and spring together?
What is struts and springs in java?
What is the purpose of @key?
What is struts2 framework?
How to get data from the velocity page in a action class?
What is the purpose of '@customvalidator'?
How the exceptions are handled in struts?