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

What is difference between get and post method?

1025


What are the kinds of http requests?

1001


Can we fetch the attributes related to a servlet on a different servlet?

1111


What is the structure of the http response

1131


Where do you define dispatcherservlet?

1003


How is a servlet implemented in code?

1039


What are the drawbacks of cgi?

980


What is called servlet mapping?

1023


How httpservlet is different from the genericservlet?

1090


What are the steps involved in placing a servlet within a package?

1046


Difference between java beans & servlets?

1010


What are the different session tracking techniques?

1163


What are the features added in Servlet 2.5?

1213


Can you create a deadlock condition on a servlet?

1047


Why doesn’t a servlet include main()?

1004