Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to get the current httpsession object?

1130


What do you mean by request dispatcher in servlet? Also explain its methods.

1153


How do I support both get and post from the same servlet?

1214


What are the life cycle methods of a servlet?

1055


How can you use a servlet to generate a plain text instead of html?

1135


What is setattribute in servlet?

1151


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

1108


What is called a session?

1180


List out difference between a JavaBean from a Servlet?

1038


Which exception is thrown if the servlet is not initialized properly?

1031


What do you mean by httpservlet and how it is different from the genericservlet?

1059


What is http servlet? Explain with the help of an example.

1069


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

2189


Explain url encoding in servlet?

1061


What is servlet in tomcat?

1062