What is Request Dispatcher and What is reuest Processor??
Answer Posted / nagendra
RequestDispatcher is an interface
which is used to forward our request to java
enabled Resources like servlet,jsp.. within the server.
it has one limitation i.e we cant forward req to
outside server... that was achieved by using sendreDirect
mechanism ..which forwards request not only within the
server but also outside servers.
RequestProcessor is an predefined class given by structs
framework..
and it is helper class to Structs controller
component i.e ActionServlet by using the method process()..
eventhough it is predefined we can create our
own RequestProcessor class
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
For a single Struts application, can we have multiple struts-config.xml files?
What helpers in the form of jsp pages are provided in struts framework?
Which configuration files are used in struts?
What is the purpose of @results annotation?
What is the purpose of @customvalidator annotation?
Where should struts xml be placed?
How to get data from the velocity page in a action class?
What is the use of namespace in action mapping in Struts2?
Why are springs better than struts?
What’s the difference between struts and turbine? What’s the difference between struts and espresso?
What is the purpose of @key?
Is struts compatible with other java technologies?
Are struts still used?
What are the loop holes of struts?
What is the purpose of @after annotation?