Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the difference between requestdispatcher and sendredirect?

 
Bharathi Dhas Krishnasamy
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have doubt in difference between requestdispatcher and sendredirect.
Anyone can explain that?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One's a method, one's a class (interface maybe; I don't recall).
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is one of the most asked questions. I believe it's also in the FAQ. If not, just check the docs.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic