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 the procedure for initializing a servlet?

1092


What is Client-Server Computing?

2486


Explain url encoding in servlet?

1106


When a servlet accepts a call from a client, it receives two objects. What are they?

1307


What is called a session?

1230


What is the difference between genericservlet and httpservlet

1159


Why servlet is faster than jsp?

1138


Why session tracking is needed?

1091


What is meant by Servlet? What are the parameters of service method?

1101


How to handle exceptions thrown by application with another servlet?

1143


How can you start a jta transaction from a servlet deployed on jboss?

1208


Write a command to get actual path of a servlet to the server?

1078


What is cookies in servlet with example?

1230


What is Request Dispatcher?

1519


What's the advantages using servlets than using cgi?

1047