Hi Dan, I just ran into this same issue today, and I hope that somebody has a better idea than what I ended up doing. I changed the .css files to .jsp and put script tags around them and included them as JSPs. This, of course, gave me access to taglibs which would let me prepend the context path to the image.
Your example would end up looking something like this: <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %> <style type="text/css"> ul { list-style-image: url(<html-el:rewrite page="/images/li.gif"/>); } </style> This is all I was able to figure out. Does anybody have any better ideas? Thanks, Justin ----- Original Message ----- From: "Dan Payne" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 5:31 PM Subject: context relative image reference in a CSS file > I recall seeing someone mention a project on sourceforge that allowed one to > make context independent references to images from the context root within > CSS files. Anyone? Or perhaps another solution? > > I've got this entry in my stylesheet.css file: > > ul { > list-style-image: url(/images/li.gif); > } > > and it's causing one hell of a headache as the app is deployed on different > contexts. Any ideas? > > thanks...Dan > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>