struts2---struts.xml文件头
来源:互联网 发布:台达dvp plc编程技巧 编辑:程序博客网 时间:2024/05/23 18:10
package提供了将多个Action组织为一个模块的方式 ,package的名字必须是唯一的package可以扩展 当一个package扩展自 另一个package时该package会在本身配置的基础上加入扩展的package 的配置 父package必须在子package前配置 ,
name:package名称 extends:继承的父package名称.当一个包通过配置extends属性继承了另一个包的时候,该包将会继承父包中所有的配置,包括action、result、interceptor等。由于包信息的获取是按照配置文件的先后顺序进行的,所以父包必须在子包之前被定义。通常我们配置struts.xml的时候,都继承一个名为“struts-default.xml”的包,这是struts2中内置的包。 abstract:设置package的属性为抽象的 抽象的package不能定义action,值true:false namespace:定义package命名空间 该命名空间影响到url的地址,例如此命名空间为/test那么访问是的地址为: http://localhost:8080/struts2/test/XX.actionnamespace主要是针对大型项目中Action的管理,更重要的是解决Action重名问题,因为不在同一个命名空间的Action可以使用相同的Action名的。
0 0
- struts2---struts.xml文件头
- Struts2配置struts.xml文件
- struts2 框架 struts.xml文件结构
- Struts2中的struts-default.xml文件
- Struts2 Chapter2 struts.xml文件的配置
- struts2 struts.xml文件<constant>标签说明
- Struts2中struts.xml文件详解
- struts2 02 struts.xml文件中的标签
- struts2 struts.xml文件<constant>标签说明
- struts2配置 struts.xml文件范例
- struts2 struts.xml文件<constant>标签说明
- Struts2关于struts.xml文件配置说明
- Struts2基础(struts.xml文件)
- struts2 struts.xml文件<constant>标签说明
- struts2中web.xml配置struts.xml文件
- Struts2中有关struts-default.xml,struts.xml,struts.properties文件详解
- [转载]Struts2中有关struts-default.xml,struts.xml,struts.properties文件详解
- Struts2中有关struts-default.xml,struts.xml,struts.properties文件详解
- 设计模式C++学习笔记之七(AbstractFactory抽象工厂模式)
- fastjson转换json格式数据为List<HashMap>转换异常问题
- 2014蓝桥杯 小朋友排队
- 【Scala类型系统】自身类型(self type)引用
- VLC搭建RTSP服务器的过程 -测试通过
- struts2---struts.xml文件头
- 如何从我的 SD 卡中删除 Windows 10 IoT 核心版
- 152. Maximum Product Subarray LeetCode
- QT 的Moc Uic Rcc有什么用(360ui移植到eclipse)
- 设计模式C++学习笔记之八(Adapter适配器模式)
- asp.net 中错误页面的配置问题
- STL unordered_map(hash_map)详解
- 分布式系统和container
- Laravel 验证