tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hassan Schroeder <>
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 <> 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.

Hassan Schroeder ------------------------
twitter: @hassan

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message