You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Charlie Toohey <ct...@pacbell.net> on 2003/09/05 20:07:11 UTC

response.sendRedirect

The Servlet API doc for the sendRedirect method states:

"....If the location is relative with a leading '/' the container interprets 
it as relative to the servlet container root....."

I've looked thru the Servlet Spec and can not quite figure out what they mean 
by servlet container root ? Is this a typo and supposed to be servlet context 
root ? Or is there really such a thing as the servlet container root, and if 
so, what is it ? 

e.g. if my context path is "/cal" and I want to redirect to 
"/cal/form/index.jsp", what would I use in sendRedirect ?
(I know I could do a forward, but want to redirect in my situation)

Thanks,
Charlie