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 |
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
Difference between == and .equals() ?
Is space a string in java?
Should database connections be singleton?
Why do people says “java is robust”?
how to deploy apache tomcat server to weblogic server in java
What is unicode?
difference between arraylist and linkedlist otherthan performance
What is a line break example?
How hashmap increases its size in java?
if i have one string class then how can you achive this class functionality of this class?
Can you explain the Java thread lifecycle?