wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt on sendRedirect() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt on sendRedirect()" Watch "Doubt on sendRedirect()" New topic

Doubt on sendRedirect()

Ranch Hand

Joined: Oct 09, 2003
Posts: 517

"The forward slash at the begining means root of this web-app".

Is it correct?can anyone explain?


God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda
Bharat Roy
Ranch Hand

Joined: Jul 01, 2004
Posts: 156
Either provide the full URL or remove the / from the beginning.
Ranch Hand

Joined: Oct 09, 2003
Posts: 517
I got the answer from HFSJ errata list.(http://www.oreilly.com/catalog/headservletsjsp/errata/headservletsjsp.confirmed)
It says
"The forward slash at the beginning means "relative to the root of the web container."

I agree. Here's the link: http://aspose.com/file-tools
subject: Doubt on sendRedirect()
Similar Threads
Is it possible to pass the parameters in sendRedirect()?
forwarded to jsp displays content in previous jsp
response.sendRedirect problem
how to forward to other page