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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define a servlet?

942


How can we include static files in the jsp page?

1027


What's the difference between authentication and authorization?

1094


What are the differences between the servletconfig interface and the servletcontext interface?

1127


What is url encoding and url decoding

1104


What are important features of Servlet 3?

1063


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

1066


What's the difference between servlets and applets?

998


What are the different session tracking techniques?

1153


Can you call a jsp from the servlet?

974


What is the servlet?

1047


Write the code to get the server information in servlet.

995


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

972


What are the steps that are involved in using the httpservlet class?

1077


Name the different ways of session tracking.

968