On 23/10/2009 11:50, rowlando wrote:
Hi there,
For maintenance purposes I want to keep stylesheets in separate files.
However, when served, they should be concatenated together as a single file.
Why?
- Why do this with a JSP/Servlet?
- Why not concatenate it into a single CSS file at build time, prior to
deployment?
- Why not use the CSS import directive?
Serving it via a servlet risks preventing the browser from caching it as
effectively.
p
Simply, I have a file called global.css with the following:
<%@ include file="../global/i_base.css" %>
<%@ include file="../global/i_header.css" %>
<%@ include file="../global/i_footer.css" %>
<%@ include file="../global/i_layout.css" %>
<%@ include file="../global/i_button.css" %>
In the head of a JSP file I put the line:
<link rel="stylesheet" type="text/css" media="screen"
href="/assets/css/concat/global.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?
Thanks,
Nick.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org