File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets " Watch "servlets " New topic


Madhan Kumar

Joined: Jan 09, 2006
Posts: 7
what is the use of RequestDispatcher in servlets?
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Mainly to include some content from another source,
or to forward the request to another entity.

[My Blog]
All roads lead to JavaRanch
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Madhan Kumar:
what is the use of RequestDispatcher in servlets?

I think the API documentation explains it pretty well:

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63838

Also, please read this.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: servlets
It's not a secret anymore!