This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

send redirect method

 
praveen kumar gowda
Greenhorn
Posts: 23
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic