sitemesh 2007-06-03 19:39 sitemesh是opensymphony团队开发的j2ee应用框架之一,旨在提高页面的可维护性和复用性。opensymphony的另一个广为人知的框架为webwork是用作web层的表示框架。他们都是开源的,可以在www.sf.net下找到。 应用于以下大项目的例子:http://opensource.thoughtworks.com/projects/sitemesh.html www.jboss.org www.theserverside.com www.opensymphony.com www.atlassian.com 简介: sitemesh应用...
我的配制如下:
首先导入了两个包(freemarker.jar,sitemesh-2.2.1.jar)
在web.xml的最前加入
1. 使用 sitemesh 的 Servlet Filter 做页面修饰. 这种方式是 sitemesh 默认的使用方式,我们先来分析一下工作流程. Action的定义(webwork-default.xml): 代码 result-type name="freemarker" class="com.opensymphony.webwork.views.freemarker.FreemarkerResult" default="true"/> action name="viewLogin" class="foo.bar.viewLoginAction"> result name="success">/login.ftlresult> action> render_code(); 当客户端...
如题, 哪位在Tomcat5,6下成功配置过sitemesh和Url Rewrite(2.6 stable). 我配置的总是sitemesh无法用