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

There are three 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);

3.by calling getNamedDispatcher(servlet logical name)on
ServletContext object


RequestDispatcher rd=context.getNamedDispatcher(servlet
logical name)

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Whether we can get deadlock situation in servlets?

1012


What do you mean by httpservlet?

1001


What's the servlet interface?

1031


What is the difference between the include() and forward() methods?

1031


What are the functions of the servlet container?

1556


Explain the difference between servletconfig and servletcontext in servlet?

990


How we can get ip address of client in servlet?

941


The code in a finally clause will never fail to execute, right?

1007


What are the uses of servlet and what is servlet chaining?

1047


What is servlet instance?

991


Describe in brief RequestDespatcher?

1073


What are all the advantages of servlet over cgi?

1021


Is servlet a controller?

963


what is servlet chaining?

1043


What is lazy loading and what is Generic Servlet Class?

1027