简介: sitemesh应用Decorator模式,用filter截取request和response,把页面组件head,content,banner结合为一个完整的视图。通常我们都是用include标签在每个jsp页面中来不断的包含各种header, stylesheet, scripts an ...
分类:
其他好文 时间:
2017-12-04 23:40:11
阅读次数:
282
在WEB-INF--lib下导入sitemesh的jar包web.xml中添加如下代码<!--sitemesh-->
<filter>
<filter-name>sitemesh</filter-name>
<filter-class>com.opensymphony.sitemesh.webapp.SiteMeshFilter</filter-class>
</filter>
<filter-..
分类:
其他好文 时间:
2015-04-09 20:11:29
阅读次数:
155