What is Request Dispatcher and What is reuest Processor??
Answers were Sorted based on User's Feedback
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 |
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 |
What are result types in struts?
What is package name in struts xml?
What is struts-default package and what are it’s benefits?
Which interceptor is responsible for mapping request parameters to action class Java Bean properties?
tell me struts flow ?
5 Answers BA Continnum Solutions, Exira, Fidelity, iGate,
Why do we use struts?
What is strut action mapping?
How to display validation errors on jsp page?
If we close the browser,when the specific user session is active.Again if we open browse how to retrive it same user??what code i have to da???
How to carryout the validations in struts if the validator frame work cant handle the validation
Can a reducer dispatch an action?
how handle when client send multiple request at atime for multiple servlets servlets?