`
- 浏览:
944 次
- 性别:
- 来自:
深圳
-
struts2+sitemesh 装饰器action路径问题
[size=xx-large][size=large][/size][size=small]定义了三个装饰器模板stu_Decorator.jsp, tec_Decorator.jsp, admin_Decorator.jsp。有三个action之后的页面分别被装饰 student.jsp, teacher.jsp, admin.jsp. 但是无论action到哪个页面都被admin_Decorator.jsp 装饰。下面是decorator.xml代码:
<?xml version="1.0" encoding="UTF-8"?>
<decorators defaultdir="/decorators">
<excludes>
<pattern>/index.jsp</pattern>
</excludes>
<decorator name="stu_Decorator" page="stu_Decorator.jsp">
<pattern>/student/*</pattern>
<pattern>/*.action</pattern>
</decorator>
<decorator name="tec_Decorator" page="tec_Decorator.jsp">
<pattern>/teacher/*</pattern>
<pattern>/*.action</pattern>
</decorator>
<decorator name="admin_Decorator" page="admin_Decorator.jsp">
<pattern>/admin/*</pattern>
<pattern>/*.action</pattern>
</decorator>
</decorators>
······················
怎样让action后的页面被各自的装饰器正确装饰???
即stu_Decorator.jsp装饰student.jsp
tec_Decorator.jsp 装饰 teacher.jsp
admin_Decorator.jsp 装饰 admin.jsp
[size=x-small][/size][size=medium][/size][/size][/size]
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
struts2+sitemesh例子 该例子描述了struts2+sitemesh的配置,比较实用
一个Struts2+Spring2.5+SiteMesh的小DEMO,仅供大家做个参考!我也刚学会。欢迎大家多交流!
Struts2+Spring+Hibernet+JPA+sitemesh+log4j整合。
Struts2+Spring+Hibernate+sitemesh做的一个在线音乐站点写的一个在线音乐 的站点.功能实现的相对比较粗糙(如歌曲列表没考虑分页什么的),另外只能使用IE(使用了ActiveX 控件播放音乐的).
Sitemesh是由一个基于Web页面布局、装饰以及与现存Web应用整合的框架。它能帮助我们在由大 量页面构成的项目中创建一致的页面布局和外观,如一致的导航条,一致的banner,一致的版权,等等。 它不仅仅能处理动态的...
概述 Struts 2.0提供一个Sitemesh插件... 缺省情况下,sitemesh假定装饰器文件保存在应用上下文根路径下的decorators目录下,如果采用如上配置,装饰器文件应该是ftl格式,如果需要使用其他格式,需要更改过滤器配置。
测试用报表架构(sitemesh+struts2+birt)
集成了struts2,spring2,hibernate3,以及velocity和sittemesh的项目源代码,有兴趣的可以下载下,关键是集成velocity有点难度,呵呵.
NULL 博文链接:https://hufeng.iteye.com/blog/340106
jQuery+json+struts2+spring3(事务,AOP,IoC即DI)+hibernte3+EhCache+oscache+proxool+MySQL+SiteMesh+Gzip lj例子
struts2-sitemesh-plugin-2.2.1.1.jarstruts2
sitemesh+ spring2 + struts2 + hibernate 的 demo
struts2-sitemesh-plugin-2.0.8.jar
struts2-sitemesh-plugin-2.1.6.jar
springmvc+mybatis+ehcache+jsp+sitemesh完美运行
springmvc + mybatis + sitemesh3登陆 超简洁例子mysql 增加了MD5验证
springmvc + mybatis + sitemesh3 超简洁例子 整合springmvc mybatis 方法请看: http://blog.csdn.net/kokoyuo/article/details/52808510
NULL 博文链接:https://takeme.iteye.com/blog/1716488
struts2-sitemesh_入门收集struts2-sitemesh_入门收集
Maven+SpringMVC+Hibernate4+Security+CXF+SiteMesh,用户权限完全自定义