道听途说Struts2之12:include模块包含
来源:互联网 发布:将ubuntu安装在u盘里 编辑:程序博客网 时间:2024/05/22 10:48
在struts中有一个有一个类似与jsp的include标签。这个标签的作用是将外部的struts.xml文件包含到某个struts.xml文件中。在struts的帮助文档中有如下代码:
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"><struts> <include file="Home.xml"/> <include file="Hello.xml"/> <include file="Simple.xml"/> <include file="/util/POJO.xml"/> <include file="/com/initech/admin/admin-struts.xml"/></struts>
这里要求被包含的struts.xml文件,也必须是一个完整的struts配置文件,也都应该包含头信息,而不是像jsp一样,在jsp中被包含的jsp可能没有头信息。
在一个大的项目环境中,这个标签可以用来组织不同团队开发的不同的某块的集成。
- 道听途说Struts2之12:include模块包含
- 道听途说Struts2之3:Action
- 道听途说Struts2之2:命名空间
- 道听途说Struts2之2:命名空间补充
- 道听途说Struts2之4:Path路径问题
- 道听途说Struts2之5:Method and DMI
- 道听途说Struts2之9:接收中文参数
- 道听途说Struts2之11:取得Web元素
- 道听途说Struts2之13:默认的Action
- 道听途说Struts2之16:global result
- 道听途说Struts2之17:动态结果
- 道听途说Struts2之20:OGNL投影
- Struts2中的模块包含
- struts2模块包含
- Struts2简单模块包含
- Struts2 模块包含
- 道听途说Struts2之6:Action通配符 约定优于配置
- 道听途说Struts2之7:使用Action属性接收参数
- poj 1088 滑雪
- 给全局变量赋值出异常
- mysql插入反斜杠"\"丢失的解决方法
- Spring MVC过滤器-超类
- android2.1-src-tree
- 道听途说Struts2之12:include模块包含
- 生成不重复随机数的一种算法
- AS3 setChildIndex 的用法
- flash js 跨域调用问题
- Matrix Completion
- SIFT算法研究
- java远程通信原理
- cuda安装
- 第五章 类的继承和super的使用调用父类构造方法