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
Give an alternative way to protect jsp’s with not much features from direct access.
Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?
How many servlet controllers are used in a Struts Application?
Explain design patterns which is used in struts?
What is the purpose of struts.xml in struct2?
Difference between struts and spring?
What is meant by custom tags?
What are Struts2 core components?
How can we handle exceptions thrown by application in Struts2?
What is the purpose of @result?
What configuration changes are required to use resource files in Struts?
What is the role of action class?
Why was reload removed from struts (since 1.1)?
Which design pattern is implemented by Struts2 interceptors?
What is action servlet in struts?