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

What is the life-cycle of servlets?

1139


How to commuincate between an applet and a servlet?

1055


Explain the features are in servlet 3?

1054


Is it good idea to create servlet constructor?

1256


How can the session in servlet be destroyed?

1159


How can you create a session in servlet?

1142


What are common tasks performed by Servlet Container?

1262


Name the different ways of session tracking.

1028


List out the difference between ServletConfig and ServletContext?

1046


Which is the methods of generated servlet?

1225


Which event is fired at the time of setting, getting or removing attribute from application scope?

1140


If my browser does not support cookie, and my server sends a cookie instance what will happen?

1101


Is it possible to have a constructor inside the servlet?

1015


What is the difference between a generic servlet and http servlet?

998


Explain jsessionid and when is it created?

1114