wood burning stoves 2.0*
The moose likes Servlets and the fly likes What is the difference between requestdispatcher and sendredirect? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "What is the difference between requestdispatcher and sendredirect?" Watch "What is the difference between requestdispatcher and sendredirect?" New topic
Author

What is the difference between requestdispatcher and sendredirect?

Bharathi Dhas Krishnasamy
Greenhorn

Joined: Jun 20, 2009
Posts: 26
I have doubt in difference between requestdispatcher and sendredirect.
Anyone can explain that?


Bharathi Dhas.K
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61064
    
  66

Have you read the javadocs on these classes? The Servlet Specification? Between these two resources, all is explained.

Or do you have specific questions regarding their differences that you did not understand after reading the above?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

One's a method, one's a class (interface maybe; I don't recall).
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
This is one of the most asked questions. I believe it's also in the FAQ. If not, just check the docs.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What is the difference between requestdispatcher and sendredirect?