This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt on sendRedirect()

 
MInu
Ranch Hand
Posts: 517
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sendRedirect("/foo/stuff.html")

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

Is it correct?can anyone explain?

Thanks....
 
Bharat Roy
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either provide the full URL or remove the / from the beginning.
 
MInu
Ranch Hand
Posts: 517
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic