This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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.(
It says
"The forward slash at the beginning means "relative to the root of the web container."

It is sorta covered in the JavaRanch Style Guide.
subject: Doubt on sendRedirect()