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


Please Help Members By Posting Answers For Below Questions

What is the difference between shocks and struts?

492


What is the use of interceptor?

514


What is the role of a handler in mvc based applications?

736


What configurations are stored in struts configuration file ?

527


What is apache struts vulnerability?

537






How is declarative handling of exceptions done in struts ?

468


What kind of mvc is struts 2?

549


What is difference between interceptors and filters?

528


What are the components of struts?

551


What is the purpose of action-mappings tag in struct-config.xml?

582


How does struts2 token work?

518


How struts control data flow?

530


What are the differences between http direct and http indirect?

463


What is the use of struts config xml file?

477


What is the default suffix for Struts2 action URI and how can we change it?

512