Message from discussion
How to exclude css mime type ?
Received: by 10.224.183.69 with SMTP id cf5mr14764825qab.0.1323883370242;
Wed, 14 Dec 2011 09:22:50 -0800 (PST)
X-BeenThere: sitemesh3-users@googlegroups.com
Received: by 10.224.188.82 with SMTP id cz18ls6206019qab.1.gmail; Wed, 14 Dec
2011 09:22:49 -0800 (PST)
Received: by 10.224.188.65 with SMTP id cz1mr14587153qab.2.1323883369420;
Wed, 14 Dec 2011 09:22:49 -0800 (PST)
Received: by 10.224.176.134 with SMTP id be6msqab;
Wed, 14 Dec 2011 09:19:08 -0800 (PST)
Received: by 10.224.183.69 with SMTP id cf5mr14738539qab.0.1323883148434;
Wed, 14 Dec 2011 09:19:08 -0800 (PST)
Received: by 10.224.183.69 with SMTP id cf5mr14738535qab.0.1323883148426;
Wed, 14 Dec 2011 09:19:08 -0800 (PST)
Return-Path: <guillaume.m...@gmail.com>
Received: from mail-qw0-f56.google.com (mail-qw0-f56.google.com [209.85.216.56])
by gmr-mx.google.com with ESMTPS id z3si2967168qcr.1.2011.12.14.09.19.08
(version=TLSv1/SSLv3 cipher=OTHER);
Wed, 14 Dec 2011 09:19:08 -0800 (PST)
Received-SPF: pass (google.com: domain of guillaume.m...@gmail.com designates 209.85.216.56 as permitted sender) client-ip=209.85.216.56;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of guillaume.m...@gmail.com designates 209.85.216.56 as permitted sender) smtp.mail=guillaume.m...@gmail.com
Received: by qady23 with SMTP id y23so990055qad.11
for <sitemesh3-users@googlegroups.com>; Wed, 14 Dec 2011 09:19:08 -0800 (PST)
MIME-Version: 1.0
Received: by 10.224.116.73 with SMTP id l9mr1617244qaq.15.1323883148359; Wed,
14 Dec 2011 09:19:08 -0800 (PST)
Received: by p9g2000vbb.googlegroups.com with HTTP; Wed, 14 Dec 2011 09:19:08
-0800 (PST)
Date: Wed, 14 Dec 2011 09:19:08 -0800 (PST)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2)
AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7,gzip(gfe)
Message-ID: <7c780cec-e75e-4d4d-aea4-3696fe2cd381@p9g2000vbb.googlegroups.com>
Subject: How to exclude css mime type ?
From: Guillaume MAKA <guillaume.m...@gmail.com>
To: SiteMesh 3 Users <sitemesh3-users@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
I've a problem with the sitemesh 2.4 when I try to retrieve local css
stylesheet in my JSP files with the <rel /> tag. Safari say me it
requested with the correct text/css mime-type but get text/html
response in place.
My CSS declaration:
<link type="text/css" rel="stylesheet" href="/MyApp/assets/css/
bootstrap.css">
<link type="text/css" rel="stylesheet" href="http://localhost:8888/
MyApp/assets/css/bootstrap.css">
This is my decorators.xml files
<decorators defaultdir="/template">
<decorator name="layout" page="layout.jsp">
<pattern>/*</pattern>
</decorator>
<excludes>
<pattern>/assets/*</pattern> <---- Contains css and js dir
</excludes>
</decorators>
This is my web.xml files
<web-app>
<display-name>MyApp</display-name>
<servlet>
<servlet-name>Jersey Web Application</servlet-name>
<servlet-class>
com.sun.jersey.spi.container.servlet.ServletContainer
</servlet-class>
<init-param>
<param-name>com.sun.jersey.api.json.POJOMappingFeature</param-
name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>Jersey Web Application</servlet-name>
<url-pattern>/resources/*</url-pattern>
</servlet-mapping>
<filter>
<filter-name>sitemesh</filter-name>
<filter-class>
com.opensymphony.module.sitemesh.filter.PageFilter
</filter-class>
<init-param>
<param-name>debug.pagewriter</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
I think the problem it's the filter catch all content-type instead
catch only the html content type.
If someone can help me to solve this behavior.
Thanks