Re: CSS background images, struts2

2009-08-05 Thread Zoran Avtarovski
We use the tomcat method and have found there are no issues: What you do is that in either your tomcat web.xml or your app xml specify : jsp *.css Which will treat the css files as jsps and parse any el expressions they contain and in your css place the following at the top so the

Re: CSS background images, struts2

2009-08-05 Thread Andy Law
Haroon Rafique wrote: > > If your file structure is somewhat like: > > styles/base.css > images/image.gif > > then you can simply change your background-image directive to say: > background-image: url('../images/image.gif'); > > and Musachy Barroso wrote: > > assuming your dir structur

Re: CSS background images, struts2

2009-08-04 Thread Musachy Barroso
assuming your dir structure is like: css ...main.css images someimage.jpg you can use this in your css: url(../images/someimagejpg) and then this in your jsp: musachy On Tue, Aug 4, 2009 at 9:38 AM, Andy Law wrote: > > I'm trying to specify a CSS style to be applied to a table header ro

Re: CSS background images, struts2

2009-08-04 Thread Andy Engle
user@struts.apache.org Sent: Tuesday, August 4, 2009 5:00:12 PM Subject: Re: CSS background images, struts2 Wes Wannemacher wrote: > > One thing I've done in the past is to treat CSS files as JSPs and use > s:url tags or EL expressions (${contextRoot}/images/image.gif)... > > Oo

Re: CSS background images, struts2

2009-08-04 Thread Andy Law
Wes Wannemacher wrote: > > One thing I've done in the past is to treat CSS files as JSPs and use > s:url tags or EL expressions (${contextRoot}/images/image.gif)... > > Oh. That feels s dirty!!! There has to be a cleaner way to do it. Later, Andy -- View this message in context:

Re: CSS background images, struts2

2009-08-04 Thread Andy Law
Haroon Rafique wrote: > > On Today at 9:38am, AL=>Andy Law wrote: > > If your file structure is somewhat like: > > styles/base.css > images/image.gif > > then you can simply change your background-image directive to say: > background-image: url('../images/image.gif'); > > or in other words,

Re: CSS background images, struts2

2009-08-04 Thread Haroon Rafique
On Today at 9:38am, AL=>Andy Law wrote: AL> [..snip..] AL> AL> th.myclass { AL> background-image: url('images/image.gif'); AL> } AL> Andy, If your file structure is somewhat like: styles/base.css images/image.gif then you can simply change your background-image directive to say: backgro

Re: CSS background images, struts2

2009-08-04 Thread Wes Wannemacher
One thing I've done in the past is to treat CSS files as JSPs and use s:url tags or EL expressions (${contextRoot}/images/image.gif)... Pointing your jsp servlet in tomcat to CSS files, IIRC, didn't work right (I think I found the JSP servlet was actually looking at the file and saying - "hey, thi

CSS background images, struts2

2009-08-04 Thread Andy Law
I'm trying to specify a CSS style to be applied to a table header row that includes a reference to a background image (specifically as part of a table that uses JQuery/tablesorter). It is causing me pain. To clarify what may be a bit of a garbled question, my (final, effective) html needs to look