What is Request Dispatcher and What is reuest Processor??

Answers were Sorted based on User's Feedback



What is Request Dispatcher and What is reuest Processor??..

Answer / laxmi

RequestDispatcher(rd) is an interface .Servlet container
creates rd object that receives requests from the client and
sends them to any resource (such as a servlet, HTML file, or
JSP file) on the server.
Request Processor contains the processing logic that the
ActionServlet performs as it receives each servlet request
from the container.

Is This Answer Correct ?    3 Yes 0 No

What is Request Dispatcher and What is reuest Processor??..

Answer / 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

More Struts Interview Questions

How we can install struts?

0 Answers  


How to explain Software Bank Loan descriptions

0 Answers   Kekran Mekran, Wipro,


What is the use of struts config xml file?

0 Answers  


Do you need an alignment after replacing struts?

0 Answers  


Can you call Action class methods from Struts config.xml?

1 Answers   iGate,


What is the default location of result pages and how can we change it?

0 Answers  


What is the procedure of operation of a form tag?

0 Answers  


What do you mean by action errors and what are the results they force?

0 Answers  


How do you know what to give for the "path " under in struts-config.xml ?

1 Answers  


What is the purpose of '@keyproperty'?

0 Answers  


What are the applications of struts?

0 Answers  


How an actionform bean is created?

0 Answers  


Categories