What is the use of RequestDispatcher in servlet?
Answer Posted / bhudeep
RequestDispatcher is used to dispatch the request.that means
one resource take the ownership from another
resources (Servlets,jsps,htmls) available in the web
applicaions for handle the request.
we can get RequestDispatcher in two ways
1. servletContext.getRequestDispatcher("/absolute path");
2. servletRequet.getRequestDispatcher("relativepath");
now we can move to another resources with the following
methods available in RequestDispatcher
include(req,res);
forward(req,res);
| Is This Answer Correct ? | 21 Yes | 12 No |
Post New Answer View All Answers
Explain the difference between get and post method in servlet?
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
List out the difference between ServletConfig and ServletContext?
What is load-on-startup in servlet?
How can we refresh automatically when new data is entered into the database?
Who is responsible for writing a constructor?
What is the default http method in the servlet?
Difference between httpservlet and generic servlets?
What is MIME Type?
How can we include static files in the jsp page?
How can I send user authentication information while making URL Connection?
What is called Scriptlet?
What are the different methods involved in generic servlet?
What is difference between server and servlet?
What do you mean by chaining in servlet?