Re: Paths in CSS files

2007-03-28 Thread Rashmi Rubdi
I'm glad that you have a solution and I too agree that it is better to keep the .css extension on a css file, since other components may depend on it. But I just wanted to let you know that if you decide to refactor the project at a later date, and if you move the css file up or down at least one

RE: Paths in CSS files

2007-03-28 Thread Mike Quilleash
useful in the future. Thanks again, Mike. -Original Message- From: Dhaval Patel [mailto:[EMAIL PROTECTED] Sent: 27 March 2007 17:33 To: Tomcat Users List Subject: Re: Paths in CSS files This is like one of those choice questions. As other mentioned, you can rename css file to jsp fi

Re: Paths in CSS files

2007-03-27 Thread Rashmi Rubdi
On 3/27/07, Mike Quilleash <[EMAIL PROTECTED]> wrote: Thanks for the reply. *I* don't want to use contexts but I'm sure some of our difficult clients will ;) Is virtual hosts Tomcat specific as we potentially need to support other web containers too which might not have virtual host capability.

Re: Paths in CSS files

2007-03-27 Thread Dhaval Patel
ept both. Regards, Dhaval - Original Message From: Mike Quilleash <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Tuesday, March 27, 2007 10:32:57 AM Subject: RE: Paths in CSS files Hi Dhaval, I'd prefer to avoid relative addressing but I've read that the paths are relative

Re: Paths in CSS files

2007-03-27 Thread Darren
Something I've done before is rename my css files to jsp and use $ {pageContext.request.contextPath} within them. <[EMAIL PROTECTED] contentType="text/css"%> <[EMAIL PROTECTED] pageEncoding="UTF-8"%> #header { margin: 0px 0px 15px 0px; height: 100px; background: url(${pageContext.re

Re: Paths in CSS files

2007-03-27 Thread Hassan Schroeder
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 break

RE: Paths in CSS files

2007-03-27 Thread Mike Quilleash
or just a Tomcat specific feature? Thanks. Mike. -Original Message- From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Sent: 27 March 2007 15:15 To: Tomcat Users List Subject: Re: Paths in CSS files Another option is to host different applications on the root context and access each applicat

RE: Paths in CSS files

2007-03-27 Thread Mike Quilleash
-Original Message- From: Dhaval Patel [mailto:[EMAIL PROTECTED] Sent: 27 March 2007 14:35 To: Tomcat Users List Subject: Re: Paths in CSS files Hi Mike, Use relative address for images in your CSS. That's a quick way. The other way I can think of is to use redirect in web.xml of y

Re: Paths in CSS files

2007-03-27 Thread Rashmi Rubdi
Another option is to host different applications on the root context and access each application with a virtual host. With this set up you don't need to change anything in your app. But it is not clear if you do want to use contexts or if virtual hosts is an alternative you would consider. -Rash

Re: Paths in CSS files

2007-03-27 Thread Dhaval Patel
Hi Mike, Use relative address for images in your CSS. That's a quick way. The other way I can think of is to use redirect in web.xml of your webapp in such a way that all request to /image/* goes to context/image/* Hope it helps. Regards, D - Original Message From: Mike Quilleash