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

What is Servlets and explain the advantages of Servlet life cycle?

1109


Why HttpServlet class is declared abstract?

1218


What methods do you use in servlet - applet communication?

1042


Explain servlet life cycle?

1133


What are the types of servlets? Explain

1265


Why the concept of single thread model interface is used?

994


How do cookies work in servlets?

1049


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

1252


How to commuincate between an applet and a servlet?

1055


Can you explain in detail 'javax.servlet' package?

1000


What is called Session Tracking?

1188


What is the difference between forward () and sendredirect () functions in servlet? Explain

1033


How are filters?

1044


What is MIME Type?

1144


What must be implemented by all servlets?

1103