• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

send redirect method

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Greenhorn
Posts: 26
Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please go through this url click here
 
Ranch Hand
Posts: 147
Eclipse IDE Tomcat Server Debian
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sendredirect taks place at the client side whereas forward takes place at the server side.
 
reply
    Bookmark Topic Watch Topic
  • New Topic