• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between Sendredirect and Requestdispatcher.forward

 
steffy john
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anyone please tell me what the exact difference between these 2 methods, I know that redirect is a call from browser and other from the server. Also sendredirect takes a roundtrip to reach the client. All these are theoretically okay, but somehow I am not digesting these. Can anyone please tell me what the difference is..
Thanks
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
forward is internal to the server. The client is unaware that a different page is being displayed. sendRedirect sends the client to another paged, so the client is aware of where it is being sent.
 
Bosun Bello
Ranch Hand
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search this forum. You will find several discussiions regaring this.
 
steffy john
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mathew.
I shall serach the entire forum
Steffy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic