Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

redirect() vs getRequestDispatcher()

 
Shubha Krishna
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody help me to know the difference between response.redirect() and request.getRequestDispatcher()? Thanks...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One is used to perform a forward or include, the other a redirect.

Perhaps a more expansive question would yield a more expansive answer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic