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 action-mappings tag in struct-config.xml?
Which interceptor is responsible for mapping request parameters to action class Java Bean properties?
Define struts?
Can we have multiple struts config files in a single web app?
What is apache struts vulnerability?
What are the action classes in struts?
How does one create an action in struts 2?
How many struts config file can be created in struts?
What are action classes in struts?
Why is it called struts?
How action-mapping tag is used for request forwarding in struts configuration file?
What is the use of lookupdispatchaction?
What is validate() and reset() functions?
What is the use of execAndWait interceptor?
What is apache struts framework?