Re: docBase application directory

2007-08-19 Thread David Smith
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

Re: docBase application directory

2007-08-19 Thread Christopher Schultz
-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

Re: docBase application directory

2007-08-19 Thread David Smith
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

RE: docBase application directory

2007-08-19 Thread jeusdi
i [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

RE: docBase application directory

2007-08-19 Thread Caldarale, Charles R
> 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 pa

docBase application directory

2007-08-19 Thread jeusdi
hat tomcat searches file under $CATALINA_HOME/webapps/web_gm/img folder. Can you help me please? I want to refer to my resources using "/img/...", I don't want to use "../../img/...". Thanks for all in advanced. -- View this message in context: http://www.nabble.com/docB