Well.. not exactly. Per the CSS spec
(http://www.w3.org/TR/CSS21/syndata.html#value-def-uri), if the url is
in a separate css file, it's relative to the css file, not the page.
--David
Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jeusdi,
jeusdi wrote:
when I
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jeusdi,
jeusdi wrote:
> when I load the HTML page, the
> image isn't loaded.
You need to use paths in your CSS that are relative to the page being
loaded -- it's kind of a pain. You need to put the context path into
your CSS, and not as a variable, u
I think your assumption regarding how tomcat uses docBase is in error.
Path's in a HTML file are resolved by the BROWSER and as such there is
no awareness of a webapp. Your path "/img/pageheader_background.png
would be a site relative path to either a webapp named img or in absense
of that, a
[EMAIL PROTECTED]:/usr/local/tomcat/webapps$ ls web_gm
conf content css dtd img index.htm js META-INF tlds WEB-INF
[EMAIL PROTECTED]:/usr/local/tomcat/webapps$ ls web_gm/*
web_gm/index.htm
web_gm/conf:
log4j.properties
web_gm/content:
admin current errors
web_gm/css:
elements.css es
> From: jeusdi [mailto:[EMAIL PROTECTED]
> Subject: docBase application directory
>
> META-INF/context.xml-->
>
> workDir="web_gm/work">
>
If you're using any reasonably recent version of Tomcat (you didn't
bother to tell us), neither the path nor the docBase attribute are
allowed in the ele