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 are important features of Servlet 3?

1090


Explain the servlet filter.

981


What are the advantages of servlets over traditional cgi?

1095


What is servlet in simple terms?

1022


What is servlet invoker?

1040


How to get the IP address of client in servlet?

1086


What is java servlet session?

974


How can we refresh automatically when new data is entered into the database?

1103


Explain the working of service() method of a servlet.

957


Which interface should be implemented by all servlets?

1216


What are some disadvantages of storing session state in cookies?

1019


Why is httpservlet declared abstract?

1116


What’s the difference between forward() and sendredirect() methods?

1009


Why doesn’t a servlet include main()?

1045


What is difference between cookies and httpsession?

1092