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...

How many ways are available to ger RequestDispatcher object?

Answer Posted / rice

There are two ways to get RequestDispatcher object in the
servlet.

1. calling the getRequestDispatcher(String path) method on
ServletRequest.

RequestDispatcher rd=request.getRequestDispatcher(String path);


2. By getRequRequestDispatcher(String path) method on
ServletContext.

RequestDispatcher rd=context.getRequestDispatcher(String path);

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between PrintWriter and ServletOutputStream?

1217


Which HTTP method is non-idempotent?

1065


What is the GenericServlet class?

1157


Is servlet thread safe?

932


Why do we need servlet filter?

1004


What do you mean by cgi in servlet?

1023


What is the dispatcher servlet?

922


What are some disadvantages of storing session state in cookies?

968


When servlet is loaded?

1030


What is servlet? Explain

1009


why we should override only no-agrs init() method.

1084


Whether thread can be used in servlets?

1159


How do you find out what client machine is making a request to your servlet

1006


What is difference between jsp and servlet?

1119


Can filter be used as request or response?

916