Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the use of it? I've seen people use it to forward a user to another page... But I've also seen many people not use it and just use the response.sendRedirect() method provided by the response object in the servlet doPost() and doGet() methods. What's the purpose of RequestDispatcher? Thanks!
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should search this forum for threads comparing foward and sendRedirect, this should answer your question.

If I get a chance I'll see if I can find a good one for you.

Dave
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is one here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic