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 difference between lookupdispatchaction and dispatchaction?
What is the purpose of @key annotation annotation?
Explain design patterns which is used in struts?
What is the purpose of @results annotation?
What is the life cycle of actionform?
What is struts validator framework?
How struts2 supports internationalization?
What is interceptor? And life cycle methods of interceptor?
What are the sections into which a strut configuration file can be divided?
What is the use of execAndWait interceptor?
Give an example of validates method used to avoid errors.
What are the struts2 configuration properties that control file uploading process?
What is controller in struts ?
What is defeult result type?
What is action servlet in struts?