tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hassan Schroeder <hassan.schroe...@gmail.com>
Subject Re: How to use Includes in CSS files
Date Fri, 23 Oct 2009 14:31:29 GMT
On Fri, Oct 23, 2009 at 3:50 AM, rowlando <nick@rowlando.com> wrote:

> For maintenance purposes I want to keep stylesheets in separate files.
> However, when served, they should be concatenated together as a single file.
> Simply, I have a file called global.css with the following:
>
> <%@ include file="../global/i_base.css" %>
> <%@ include file="../global/i_header.css" %>
...

> Of course, the CSS file isn't processed by the JSP servlet. What do I need
> to configure to allow the CSS file to process the include directives?

Either add a url mapping for the JSP servlet to match `*.css` or
rename global.css -> global.css.jsp  and add header info to it to
provide the appropriate content-type.

FWIW,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message