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 / tirupathi rao

RequestDispatcher is used to connect to another webresource
with in the same context.

RequestDispatcher
rd=ServletContext.getRequestDispatcher("url of resource");
rd.forward(req,res);----used to forward to another resource.
rd.include(req,res);----used to include other resource.

Is This Answer Correct ?    132 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How a servlet is unloaded?

1136


Write a simple servlet program to print the contents of html.

1123


Why filter is used in servlet?

1041


What mechanisms are used by a Servlet Container to maintain session information?

1218


What is servlet lazy loading?

1231


What’s the difference between forward() and sendredirect() methods?

1068


What are the advantages of cookies?

1177


Is it good idea to create servlet constructor?

1301


Which java framework is most popular?

1218


What are the differences between forward() method and sendredirect() methods?

1082


What is the web server used for running the Servlets?

1065


What is the difference between servlet and filter?

1005


What is the difference between context parameter and context attribute?

1125


Servlet is pure java object or not?

1243


How can I send user authentication information while making URL Connection?

1057