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

Whether thread can be used in servlets?

1204


What exception should be thrown when servlet is not properly initialized?

1004


Why doesn’t a servlet include main()? How does it work?

1153


I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?

2690


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

1023


Is that servlet is pure java object or not?

1113


What is meant by a web application

1016


Explain the role of dispatcherservlet and contextloaderlistener.

1185


How can we upload the file to the server using servlet?

1081


How does java thread pool work?

1087


What is load-on-startup in servlet?

1141


What are the differences between the servletconfig interface and the servletcontext interface?

1183


What is servlet in simple terms?

1019


Explain request dispatcher and its methods.

985


Why are http servlets used in programming?

1007