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 / sekharbabu

RequestDispatcher is used to move/call the another
resources (Servlets,jsps,htmls) available in the web
applicaions
we can get RequestDispatcher in two ways
1. servletContext.getRequestDispatcher("/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 ?    25 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you deal property files in servlet?

1132


What is the use of java servlet api?

1089


What is ServletConfig object?

1250


Differentiate between the print writer and servlet output stream?

1040


How we can call a jsp from the servlet?

1057


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

1186


How to create war file?

1230


What are the types of servlets? Explain

1329


Explain the difference between generic servlet and http servlet?

1039


Can you use javascript in servlets?

1127


What's the difference between authentication and authorization?

1204


What are advantages of servlets over cgi?

1161


Explain the war file?

1118


How many objects of a servlet is created?

1318


How do you get the ip address of the client in servlet?

1061