Le dimanche 6 janvier 2013 07:53:58 Joe Walnes a écrit :
> Can you try removing the sitemesh filter and see if the extra byte issues
> still exists?
This is what I try just after sending the message =)
Disabling the filter suppress the extra byte.
After some experimentation, seems the extra byte is only added on pages which
match the filter but no decorators.
In my case :
web.xml
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>*.html</url-pattern>
</filter-mapping>
decorators.xml
<decorators defaultdir="/WEB-INF/jsp/decorators">
<decorator name="content" page="content.jsp">
<pattern>/content/*</pattern>
</decorator>
<decorator name="admin" page="admin.jsp">
<pattern>/admin/*</pattern>
</decorator>
</decorators>
/login.html match the filter but no decorator => extra byte
After adding an exclusion in decorators.xml
<decorators defaultdir="/WEB-INF/jsp/decorators">
<excludes>
<pattern>/login.html</pattern>
</excludes>
…
</decorators>
no more extra byte on /login.html =)
But this behaviour is very strange…
--
Nicolas Vinot