SiteMesh 过滤不装饰的页面

要实现SiteMesh过滤不装饰页面,需要做两方面的设置
1、在sitemesh.xml里需要有excludes元素

<excludes>
  <pattern>/index.jsp</pattern>
  <pattern>/scripts/*.*</pattern>
  <pattern>/htmleditor/*.*</pattern>
  <pattern>/chart/*.*</pattern>//排除chart目录下的所有action请求
  <pattern>/flash/*.*</pattern>
  <pattern>/other/*.*</pattern>
  <pattern>/remote_requst.action*</pattern>//排除根目录下的remote_requst.action包括带参数的请求,如果action后面不带*则只能排除不带参数的请求
 </excludes>

原文地址:https://www.cnblogs.com/hzcya1995/p/13317994.html