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


What is the use of RequestDispatcher in servlet?

Answers were Sorted based on User's Feedback



What is the use of RequestDispatcher in servlet?..

Answer / srikanth

While developing complex web applications you need distribute request processing and response to multiple servlets in this case you need dispatch request from one component to another

Is This Answer Correct ?    1 Yes 0 No

What is the use of RequestDispatcher in servlet?..

Answer / mahesh

When we want to use some fields of one servlet page in
another servlet page this RequestDispatcher is very useful
through the methods

1.forward()
2.include()

Is This Answer Correct ?    3 Yes 3 No

What is the use of RequestDispatcher in servlet?..

Answer / ram

to connect another webapplication in a web application

Is This Answer Correct ?    2 Yes 2 No

What is the use of RequestDispatcher in servlet?..

Answer / gani kumar

In creating the web componets we find a requirement to reuse the components in different combinations avoiding the code duplication and have a proper reponsibility divison.
To meet this requirement in servlet envirnoment that is support a servlet acess another web resource like another servlet in the application,java servlet intrduces request dispatcher

Is This Answer Correct ?    0 Yes 0 No

What is the use of RequestDispatcher in servlet?..

Answer / malyadri b

RequestDispatcher
rd=ServletContext.getRequestDispatcher("url of resource");
rd.forward(req,res);----used to forward to another resource.
rd.include(req,res);----used to include other resource.

Is This Answer Correct ?    0 Yes 0 No

What is the use of RequestDispatcher in servlet?..

Answer / suresh g

RequestDispatcher:

RequestDispatcher class is mainly used to 'pass on'
the current request to another program (servlet) and
therefore allows 'chaining' of the programs. A
RequestDispatcher primarily contains two methods
include() and forward(). include() method includes
the response of another program while forward()
method forwards the request of the current program
to another one.

Is This Answer Correct ?    0 Yes 1 No

What is the use of RequestDispatcher in servlet?..

Answer / katamraju

By using Request dispatcher we can include or forward a
request to a another resource by using only one request
and response.

Is This Answer Correct ?    12 Yes 17 No

What is the use of RequestDispatcher in servlet?..

Answer / ravikiran

request dispatcher will forward or include the response to
the output stream

Is This Answer Correct ?    8 Yes 23 No

Post New Answer

More Servlets Interview Questions

What are the annotations used in servlet 3?

0 Answers  


What is called servlet mapping?

0 Answers  


Life Cycle of servlets?

4 Answers   3i Infotech,


What are the Internal servlets maintained by the web server?

1 Answers   Infosys,


What are session variable in servlets?

0 Answers  


What is lazy loading and what is Generic Servlet Class?

0 Answers  


How to set a cookie that is persisted only for the duration fo the clients session?

1 Answers  


How long do servlets last?

1 Answers  


What methods do you use in servlet - applet communication?

0 Answers  


Hi Friends, Suppose you have a web appliction which consists of 100 clients are connected with Connection pooling and they are associated with 100 connection objcet and connected with DB sever,Due some problem DB-Server suddenly crashed and server came to down state for a while after few minutes DB-server once again up,Now how will I manage my Pool Management with my 100 clients...can any one tell me??????????????????

3 Answers   ProgressSoft,


Explain the different ways for servlet authentication?

0 Answers  


When a client request is sent to the servlet container, how does the container choose which servlet to invoke?

0 Answers  


Categories