What is the use of RequestDispatcher in servlet?
Answer Posted / naresh
consider there are two servlet,such as "aservlet"
and "bservlet"
suppose a client requests "aservlet" ,which
inturn "aservlet" depends on "bservlet"
we must redirect the request from "aservlet" to "bservlet
this is done by two steps :-
1.RequestDispatcher disp= getServletContext
().getRequestDispatcher("/url of bservlet");
2.
2.1.- rd.forward(req,res);
2.2.-rd.include(req,res);
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
How to get the path of servlet in the server?
What are the jobs performed by servlets?
What is the difference between Servlets and Applets?
What is difference between server and servlet?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What are the two important api's in for servlets?
What is the difference between servlet and filter?
What is Request Dispatcher?
What are the functions of an intercepting filter?
How can we implement a jsp page?
What are the steps that are involved in using the httpservlet class?
What is new in ServletRequest interface ? (Servlet 2.4)
Describe servlet?
What do you mean by httpservlet and how it is different from the genericservlet?
Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com