首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

SiteMesh 过滤不装点的页面

2013-03-04 
SiteMesh 过滤不装饰的页面要实现SiteMesh过滤不装饰页面,需要做两方面的设置1、在sitemesh.xml里需要有exc

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>

热点排行