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

Is struts mvc framework?

665


Why use spring, if you are already using struts?

724


Describe the mvc on struts?

717


Is struts compatible with other java technologies?

702


What is the purpose of @emailvalidator?

740


What are the important methods of actionform?

797


What are the 5 constants of action interface?

765


What is package name in struts xml?

762


What is struts framework in java?

719


What are the reasons for an error message not being displayed while developing struts application?

723


What is container struts2?

744


What is the purpose of interceptors?

739


What is role of actionservlet?

754


What does validation interceptor?

739


How many struts config file can be created in struts?

650