This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 63544

Also, please read this.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: servlets
jQuery in Action, 3rd edition