aspose file tools*
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
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt on sendRedirect()" Watch "Doubt on sendRedirect()" New topic
Author

Doubt on sendRedirect()

MInu
Ranch Hand

Joined: Oct 09, 2003
Posts: 517
sendRedirect("/foo/stuff.html")

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

Is it correct?can anyone explain?

Thanks....


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.
MInu
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."

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt on sendRedirect()