On 3/27/07, Mike Quilleash <[EMAIL PROTECTED]> wrote:

I have a question about accessing resources from within CSS files,

Particularly the url "/image/box.png".  Potentially my Tomcat web
application may be run with a context path so "/image/" becomes
"/contextpath/image" and all the CSS breaks.  Is there a way round this?

background:url(${pageContext.request.contextPath}/image/box.png)
no-repeat 100% 0;

Parse those files as JSPs and the above will take care of it :-)

HTH,
--
Hassan Schroeder ------------------------ [EMAIL PROTECTED]

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to