This is my sitemesh-decorators.xml file content
<decorators defaultdir="/WEB-INF/sitemesh">
<excludes>
<pattern>*.html*</pattern>
<pattern>*.json*</pattern>
<pattern>*.xml*</pattern>
<pattern>*.download*</pattern>
<pattern>/WEB-INF/views/dashboard/dashboard.jsp</pattern>
</excludes>
<decorator name="minimal" page="minimal.jsp">
<pattern></pattern>
</decorator>
<decorator name="none" page="none.jsp">
<pattern></pattern>
</decorator>
<decorator name="default" page="default.jsp">
<pattern>*</pattern>
</decorator>
</decorators>
But the dashboard is not excluded, any ideas, I have tried to change the pattern for the 'default' tag as well by adding individual pages but no effect.
I have also tried to enter the exclude jsp page in the 'none' tag as well. Does anyone have any experience with customising it?
I altered my sitemesh-decorator.xml to
<decorators defaultdir="/WEB-INF/sitemesh">
<excludes>
<pattern>*.html*</pattern>
<pattern>*.json*</pattern>
<pattern>*.xml*</pattern>
<pattern>*.download*</pattern>
</excludes>
<decorator name="minimal" page="minimal.jsp">
<pattern></pattern>
</decorator>
<decorator name="none" page="none.jsp">
<pattern></pattern>
</decorator>
<decorator name="default" page="default.jsp">
<pattern>*</pattern>
</decorator>
<decorator name="dashboard" page="/WEB-INF/views/dashboard/dashboard.jsp"/>
</decorators>
and used
<meta name="decorator" content="dashboard">
in my dashboard.jsp's head and it did the trick.
Is this the best way?