I'm using Struts2.2.1.1 with sitemesh 2.4.1 in Apache-Tomcat 6.0.29. It works fine, but i can't exclude a file from siteMesh.
I Have My decorators in WebContent/jsp/decorators but i want to exclude the file WebContent/jsp/forms/Authentication.jsp. I tried using this decorators.xml with default dir = "/jsp/decorators":
<excludes>
<pattern>../forms/Authentication.jsp</pattern>
</excludes>
<decorator name="main" page="layout.jsp">
<pattern>/*</pattern>
</decorator>
I also tried to change pattern tag to use /jsp/forms/Authentication.jsp and didn't work either. Could anyone give me some pointers in the right direction? thanks a lot.
Juan David
In addition to what you have, you need to configure the
excludes
in yoursitemesh.xml
file, like this:-decorator.xml
sitemesh.xml