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

send redirect method

 
praveen kumar gowda
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello..every one..this is my first...doubts that i am putting here..please do help..

difference between send redirect and forward()...

in which case we can see the help of send redirect()....

so far what i understood about send redirect is, it sends a header back to the client/browser. this header then contains the resource(page/servlet) which you wanted to be redirected.

i want to kw what user might requested ...what the send redirect saying...please help me out for this confusion...
 
Joemon Anthony
Greenhorn
Posts: 26
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please go through this url click here
 
Pete Nelson
Ranch Hand
Posts: 147
Debian Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A redirect is part of the HTTP spec, and takes place at the client. Basically, the server sends a "Location: http://some.url/somewhere", and the browser should follow that new URL.

A "forward" or "include" is internal to your servlet environment, and basically allows one program unit (JSP, Servlet) to forward to or include another before sending the final output to the browser.
 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sendredirect taks place at the client side whereas forward takes place at the server side.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic