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

How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

3447


How would you create deadlock on your servlet?

1223


What is a server side include (ssi)

1236


What is a servlet engine?

1098


Why servlet is faster than jsp?

1134


How do I use cookies to store session state on the client?

1025


What is the difference in between the httpservlet and generic servlet?

1184


Where do you define dispatcherservlet?

1104


How are filters?

1084


What are some advantages of storing session state in cookies?

1080


What is a deployment descriptor?

1156


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

1142


Can you create a deadlock condition on a servlet?

1123


In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

1071


What is the purpose of dispatcherservlet properties?

1193