Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Relative/Absolute path question
August 18, 2004, 12:52 pm
rate this thread
savechanges.gif is in the buttons directory.
In the jsp directory I have a jsp file with this line in
When the jsp file is deployed on my webserver (tomcat 5 or Weblogic 8.1) the
image is displayed in the browser correctly.
But to get it to show in a package such as Dreamweaver the path has to look
like this "/images/buttons/savechanges.gif" with an
initial "/" - I do understand the difference between absolute/relative paths
but just can't see why this should be!
With the "/" in front it stops displaying in the browser!
Any ideas? - probably something really stupid I'm missing!
Re: Relative/Absolute path question
From: "zidered" <>
Sent: Wednesday, August 18, 2004 8:52 AM
Subject: Relative/Absolute path question
Actually (as per the directory structure you provided,) if your working in
the "jsp directory" the correct path for the example you provide would be
If you were in your root directory WEB-INF (higher than either jsp or
images) the link would then be "images/buttons/savechanges.gif".
In the event you were in a sub-directory of the jsp, perhaps "jsp/sib-jsp"
than the relative path would be "../../images/buttons/savechanges.gif".
- » Table Row Background Color CSS Style Not Working IN Mozilla 1.7.1
- — Next thread in » HTML Markup Language