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
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
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
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
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:
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,
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
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
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
9 matches
Mail list logo