You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Gregory, Carlton" <cg...@scn.spawar.navy.mil> on 2003/12/05 19:23:08 UTC
Image loading
Good Day all,
I refer to any images in my web application by using
"/images/<image name>" which has been working fine for weeks.
I tried to refer to a new image that I wanted to use on a page and
referred to it the same way and it did not load.
I fully qualified the path name for the file and it loaded.
What is the problem?
Thanks in advance
"My grandfather once told me that there are two kinds of people: those who
work and those who take the credit. He told me to try to be in the first
group; there was less competition there."
- Indira Gandhi
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Image loading
Posted by Ben Souther <bs...@fwdco.com>.
Adding the "/" to the relative path is not a good idea unless you know that
the application will always deployed in a context named "", as the ROOT
context that shipps with tomcat is.
Remove the "/" and use "../" if you need to back up a directory.
On Friday 05 December 2003 01:23 pm, Gregory, Carlton wrote:
> Good Day all,
>
> I refer to any images in my web application by using
> "/images/<image name>" which has been working fine for weeks.
> I tried to refer to a new image that I wanted to use on a page and
> referred to it the same way and it did not load.
> I fully qualified the path name for the file and it loaded.
> What is the problem?
>
> Thanks in advance
>
> "My grandfather once told me that there are two kinds of people: those who
> work and those who take the credit. He told me to try to be in the first
> group; there was less competition there."
> - Indira Gandhi
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
--
Ben Souther
F.W. Davison & Company, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org