how to handle http request in struts
Answers were Sorted based on User's Feedback
Answer / satish
in struts applications all the requests will be handled by
the ActionServlet for that struts-config.xml is passed as a
init-param in web.xml
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / shahnawaz sheikh
"org.apache.action.ActionServlet" is responsible for
handling all HTTP Requests. ActionServlet is responsible
for configuring your application using struts configuration
file.
After that it calls RequestProcessor which is
responsible for processing content type,mapping,forward and
many other methods.Its duty is to process request i.e fetch
appropiate action from Struts configuration file as per the
request and assigning bean to appropiate ActinForm.
One can customize the way request are handled in
Struts by customizing RequestProcessor Class.
And finally our code begins ..... and controller and model
come into play to give resulting view.
| Is This Answer Correct ? | 3 Yes | 0 No |
What is a return in java?
Why string is not a wrapper class?
What is the difference between method and means?
Which is bigger double or float?
Why is static used?
how to fing linkedlist is circular or not?
WHAT IS MARKER INTERFACE,AND NO METHODS IS NOT THERE ON THAT INTERFACE THEN WHY WE USED IN JAVA?
What is the difference between comparison done by equals method and == operator?
can we write program without class
What is the advantage of functional interface in java 8?
Can main() method in java can return any data?
What is type safety in java?