意思也即是这个页面不被sitemesh过滤器装饰..
我们可新建立一个文件夹,将不被装饰的页面放在里面,下面我们操作两个配置文件即可.
1、在sitemesh.xml里需要有excludes元素
<
sitemesh
>
< property name ="decorators-file" value ="/WEB-INF/decorators.xml" />
< excludes file ="${decorators-file}" />
.
< property name ="decorators-file" value ="/WEB-INF/decorators.xml" />
< excludes file ="${decorators-file}" />
.
2、在decorators.xml里也需要要exludes元素
<
decorators
defaultdir
="/decorators"
>
< excludes >
< pattern > /foldername/* </ pattern >
</ excludes >
< decorator name ="default" page ="default.jsp" >
< pattern > /* </ pattern >
</ decorator >
</ decorators >
< excludes >
< pattern > /foldername/* </ pattern >
</ excludes >
< decorator name ="default" page ="default.jsp" >
< pattern > /* </ pattern >
</ decorator >
</ decorators >
重新启动服务器即可.