- 浏览: 407185 次
- 性别:
- 来自: 郑州
文章分类
最新评论
-
yan789654100:
先谢谢了,去研究一下
Java网络围棋游戏源码含大厅,仿QQ游戏 -
dan0773:
火狐里面用不了
梅花雨日历控件源码,及应用实例 -
左手边:
挺好的不错
Velocity教程 -
liuxuejin:
既然是教程,连个例子都没有!顶多是个笔记而已
Velocity教程 -
sky_pearl:
泪奔……求大厅代码!!!
Java网络围棋游戏源码含大厅,仿QQ游戏
★ 作用:sitemesh应用Decorator模式,用filter截取request和response,把页面组件
head,content,banner结合为一个完整的视图[引用]。
★ appfuse的使用:
(1) 在WEB-INF/web.xml中的过滤器的定义
<filter></filter>
<filter-name></filter-name>sitemesh
<filter-class></filter-class>
com.opensymphony.module.sitemesh.filter.PageFilter
<filter-mapping></filter-mapping>
<filter-name></filter-name>sitemesh
<!---->
<url-pattern></url-pattern>/*
<!---->
<dispatcher></dispatcher>REQUEST
<dispatcher></dispatcher>FORWARD
(2)common/taglibs.jsp中的标签申明,只是命名说明,具体调用时,应用会在WEB-INF/lib中的对应
的sitemesh-x.x.jar中定位。
<!---->
<!---->
(3)WEB-INF/sitemesh.xml文件(可选),进行sitemesh配置
<sitemesh></sitemesh>
<property name="decorators-file" value="/WEB-INF/decorators.xml"></property>
<excludes file="${decorators-file}"></excludes>
<page-parsers></page-parsers>
<parser default="true" font=""></parser>
class="com.opensymphony.module.sitemesh.parser.FastPageParser"/>
<parser content-type="text/html"></parser> class="com.opensymphony.module.sitemesh.parser.FastPageParser"/>
<parser content-type="text/html;charset=ISO-8859-1"></parser> class="com.opensymphony.module.sitemesh.parser.FastPageParser"/>
<!---->
<!---->
<parser content-type="text/plain"></parser>
class="com.opensymphony.module.sitemesh.parser.FastPageParser"/>
<decorator-mappers></decorator-mappers>
<mapper class="com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper"></mapper>
(4)WEB-INF/decorators.xml文件,指定具体的装饰页。
<decorators defaultdir="/decorators"></decorators>
<excludes></excludes>
<pattern></pattern> /demos/*
<pattern></pattern> /resources/*
<decorator name="default" page="default.jsp"></decorator>
<pattern></pattern> /*
(5)装饰页/decorators/default.jsp的主要内容。
<!---->
<!---->中间-->
<!---->
<script type="text/javascript" <="" p="">
src="<c:url value="/scripts/helptip.js">"></script>
<link media="all" type="text/css" rel="stylesheet" p="">
href="<c:url value="/styles/default.css"></c:url>" />
<link media="all" type="text/css" rel="stylesheet" p="">
href="<c:url value="/styles/helptip.css"></c:url>" />
<link media="print" type="text/css" rel="stylesheet" p="">
href="<c:url value="/styles/print.css"></c:url>" />
<script type="text/javascript" <="" p="">
src="<c:url value="/scripts/global.js">"></script>
<link media="all" type="text/css" rel="stylesheet" p="">
href="<c:url value="/styles/menuExpandable.css"></c:url>" />
<script type="text/javascript" <="" p="">
src="<c:url value="/scripts/menuExpandable.js">"></script>
<!---->
<decorator:head></decorator:head>
<!---->
可以添加一个缺省值-->
>
<c:import url="/common/header.jsp"></c:import>
<c:import url="/WEB-INF/pages/menu.jsp"></c:import>
<decorator:getproperty property="page.heading"></decorator:getproperty>
<!---->
<!---->
<decorator:body></decorator:body>
<c:import url="/common/footer.jsp"></c:import>
发表评论
-
橡子树淘宝导购网正式上线
2011-08-24 13:21 11想要淘便宜就来这里看看更多优惠等着您 http://www. ... -
使用Grub 安装Windows7
2010-11-05 11:37 1416先把Windows7 光盘文件复制到移动硬盘 然后启动输入: ... -
MySql SqlServer Oracle三者的区别?(转)
2010-09-21 09:07 5394对于程序开发人员而言,目前使用最流行的两种后台数据库即为MyS ... -
grldr使用方法简介
2010-04-24 12:21 2490一 引言:grldr是grub里 ... -
使用Windows命令遍历测试未知无线路由器的IP地址
2010-04-23 13:34 2046最近发现附件一个无线网络可以连接上,但是无线路器没有开启 DH ... -
三种方法解决IIS 6目录检查安全漏洞
2009-10-24 14:18 1488一 、 Windows 2003 Enterprise ... -
Windows 定时关机及自动登录设置
2009-10-16 08:55 1189添加定时任务: 如果你想出门,但电脑又正 ... -
牵挂一个人的感觉
2009-10-09 16:27 847深秋的天气, ... -
如何在iis里面添加rmvb的mime类型
2009-09-17 20:54 1597IIS 早期版本包含通配符 MIME 映射,允许 IIS 处理 ... -
ASP.Net网站数据库被挂马后手动清除一例
2009-08-04 19:54 1618网站环境: ASP.Net ... -
2008 新款 精品 服饰 特卖
2008-04-28 09:59 198本店新开张,所有服饰超低价出售 http://shop ... -
清除internet.exe木马病毒 (转贴)
2007-08-14 08:51 1394最近可能是在某个网站下载了QQ程序吧,结果金山毒霸显示x: w ... -
Hibernate 相关书籍
2007-08-13 12:33 13651.Hibernate: A Developer's Note ... -
常用到的注册码
2007-08-01 20:56 1174Allok Video to FLV Converter v4 ... -
windows 播放 flash 没有声音有解决方法
2007-08-01 16:00 5235成功解决播放Flash没有声音 1、播放Flash没有声音, ... -
WINDOWS 2003 下重新安装TCP/IP 协议
2007-07-28 16:01 2722解决方案 要解决此问题,请删除已损坏的注册表项,然后重新安装 ... -
IE中的Flash出现激活框“单击以激活并使用此控件”的解决方法
2007-07-22 23:19 1737IE中的Flash出现激活框“单击以激活并使用此控件”的解决方 ... -
修改 NetBeans 默认编码使用 UTF-8
2007-07-17 21:08 5491英语学的不好,就不详细翻译了,呵呵!简单操作是这样的 1. ... -
flash使用FlashVars接收html参数
2007-07-09 12:09 2992flash使用FlashVars接收html参数 本教程主要介 ... -
SiteMesh介绍
2007-05-31 18:24 1611SiteMesh介绍 (转) 作者 ...
相关推荐
sitemesh-2.2.1.jar
sitemesh-2.4.1.jar sitemesh-2.4.1.jar sitemesh-2.4.1.jar sitemesh-2.4.1.jar sitemesh-2.4.1.jar sitemesh-2.4.1.jar
AppFuse是一个集成了众多当前最流行开源框架与工具(包括Hibernate、ibatis、Struts、Spring、DBUnit、Ant、Log4J、Struts Menu、Xdoclet、SiteMesh、OSCache、JUnit、JSTL)于一身的Web开发框架。AppFuse提供了Web...
spring-boot-sitemesh 源码整合
SiteMesh is a web-page layout and decoration framework and web- application integration framework to aid in creating sites consisting of many pages for which a consistent look/feel, navigation and ...
sitemesh-2.4.2-src.jar 是sitemesh的源文件jar包,当调试时需要选择该jar包进行资源查找,很好用的页面架构工具
sitemesh-2.2.1.rar sitemesh-2.2.1.rar sitemesh-2.2.1.rar
SpringMVC-Freemarker_Sitemesh3例子, maven构建。
Sitemesh简介: SiteMesh是一个Web页面布局... WebWork把全部值栈数据都保存在请求attribute中, 这意味着如果想显示值栈(或ActionContext)中的数据, 只需使用WebWork附带的标准标签库, 就这么简单!那来看完本文吧。
struts2-sitemesh-plugin-2.0.8.jar
sitemesh-2.4.1.jar sitemesh-2.4.1.zip sitemesh-blank.war
struts2-sitemesh-plugin-2.1.6.jar
struts2-sitemesh-plugin-2.2.1.1.jarstruts2
struts2-sitemesh-plugin-2.1.8.1.jar
这个是sitemesh在项目中的应用,还有相关的jar包和资料,最重要的还有例子。
sitemesh-3.0-alpha-2.jar
SiteMesh是一个网页布局和装饰框架以及Web应用程序集成框架,可帮助创建由页面组成的网站,这些页面需要一致的...SiteMesh可以在基于Java的Web应用程序中使用,也可以作为脱机作业应用于内容。 SiteMesh是可扩展的。
用于在SSH2工程中使用sitemesh-2.4.jar 包;
Struts 2.0提供一个Sitemesh插件,允许在Sitemesh模板中使用Struts标记。 要使用Sitemesh需要包含Freemark,Sitemesh和Sitemesh插件库文件。 配置过滤器 如果需要使用Freemark模板文件作为装饰器文件,需要在web....
sitemesh-2.2.1.jarsitemesh-2.2.1.jarsitemesh-2.2.1.jar