You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by James Cook <ji...@iname.com> on 2000/05/11 05:56:10 UTC
Relative Paths
I checked out the HelloWorld example, and ran across the following comments:
// note that all links are created to be relative. this
// ensures that we can move the web application that this
// servlet belongs to to a different place in the url
// tree and not have any harmful side effects.
// XXX
// making these absolute till we work out the
// addition of a PathInfo issue
Has this topic been ironed out yet? I have tried many combinations of
relative paths without success.
thanks,
jim
RE: Relative Paths
Posted by James Cook <ji...@iname.com>.
I've got some more information that may help. It seems that my problem with
relative paths revolves around the fact that my context (site) is servlet
driven. In fact, I specify in my web.xml file that my servlet is mapped to
"/". Unfortunately, this has the unwanted side-effect of routing all
requests for images, resources, etc. through my servlet.
1. Is this expected behavior? Surely, it is very common to distribute a war
file with a servlet mapped to "/".
2. What's the best way to work around this situation?
thanks
jim
> -----Original Message-----
> From: James Cook [mailto:jimcook@iname.com]
> Sent: Wednesday, May 10, 2000 11:56 PM
> To: Tomcat-User
> Subject: Relative Paths
>
>
> I checked out the HelloWorld example, and ran across the
> following comments:
>
> // note that all links are created to be relative. this
> // ensures that we can move the web application that this
> // servlet belongs to to a different place in the url
> // tree and not have any harmful side effects.
>
> // XXX
> // making these absolute till we work out the
> // addition of a PathInfo issue
>
> Has this topic been ironed out yet? I have tried many combinations of
> relative paths without success.
>
> thanks,
> jim
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>