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

difference between response.sendRedirect and jsp forward tag

 
sanpra sing
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can somebody tell me the difference between the response.sendRedirect(String url) and the jsp forward tag?
 
Vedhas Pitkar
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I think that <jsp:forward executes on the server while sendRedirect() executes on the client side.Saw this in Sun's quizzes(methinks).
 
M Suguna
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check under the heading "Choosing Between Forward and Redirect" here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic