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