Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SERVLET

 
Sudhakar Gaharwar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the exact difference between forward and SendRedirect...I have one doubt is that can we use SendRedirect for other context in other web server.pls clear my doubt?
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the Servlet collections in the below link.
 
Eddy Lee Sin Ti
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This already being discussed. Check this out Similar Thread
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
forward and send redirect both does the same thing, the only difference is forward happens on server (client doesn't know, does something special happen) and in case of send redirect client can see different URL on browser.

Am I right?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The behaviour is similar the intent and the outcomes are different. You should look at the links provided and see when to use each type.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic