Struts2配置文件Struts.xml示范
来源:互联网 发布:linux apache2 php7 编辑:程序博客网 时间:2024/05/18 02:53
- <?xml version = "1.0" encoding = "UTF-8"?>
- <!--下面是Struts2配置文件的DTD信息 -->
- <!DOCTYPE struts PUBLIC
- "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
- "http://struts.apache.org/dtds/struts-2.0.dtd">
- <!--struts是struts2配置文件的跟元素 -->
- <struts>
- <!--下面的元素可以出现0次,也可以出现无限多次 -->
- <constant name="" value="" />
- <!--下面的元素可以出现0次,也可以出现无限多次 -->
- <bean type="" name="" class="" scope="" static="" optional="" />
- <!--下面的元素可以出现0次,也可以出现无限多次 -->
- <include file="" />
- <!--package元素是struts配置文件的核心,该元素可以出现0次,或者是无限多次 -->
- <package name="必填的包名" extends="" namespace="" abstract="" externalReferenceResovler>
- <!--以下该元素可以出现,也可以不出现,最多出现一次 -->
- <result-types>
- <!--以下该元素必须出现,可以出现无数多次 -->
- <result-type name="" class="" default="true\false">
- <!--下面的元素可以出现0次,也可以出现无限多次 -->
- <param name="参数名">参数值 </param>
- </result-type>
- </result-types>
- <!--以下的该元素可以出现,也可以不出现,但最多出现1次 -->
- <interceptors>
- <!--interceptors元素的子元素interceptor元素和interceptor-stack至少出现其中之一,也可以两者都出现 -->
- <!--下面的元素可以出现0次,也可以出现无限多次 -->
- <interceptor name="" class="">
- <!--下面的元素可以出现0次,也可以出现无限多次 -->
- <param name="参数名">参数值 </param>
- </interceptor>
- <!--下面的元素可以出现0次,也可以出现无限多次 -->
- <interceptor-stack name="">
- <!-- 下面的元素必须出现,可以出现无数多次 -->
- <interceptor-ref name="">
- <!-- 下面的元素可以出现0次,也可以出现无限多次 -->
- <param name="参数名">参数值</param>
- </interceptor-ref>
- </interceptor-stack>
- </interceptors>
- <!-- 下面的元素可以出现0次,也可以出现无限多次 -->
- <default-interceptor-ref name="">
- <!-- 下面的元素可以出现0次,也可以出现无限多次 -->
- <param name="参数名">参数值</param>
- </default-interceptor-ref>
- <!-- 下面的元素可以出现0次,也可以出现无限多次 -->
- <default-action-ref name="">
- <!-- 下面的元素可以出现0次,也可以出现无限多次 -->
- <param name="参数名">参数值</param>
- </default-action-ref>
- <!-- 下面的元素可以出现0次,也可以出现无限多次 -->
- <global-results>
- <!-- 该元素必须出现,可以出现无限多次 -->
- <result name="" type="">
- <!-- 该字符串内容可以出现0次或者多次 -->
- 映射资源
- <!-- 下面的元素可以出现0次,也可以出现无限多次 -->
- <param name="参数名">参数值</param>
- </result>
- </global-results>
- <!-- 下面的元素可以出现0次,也可以出现多次 -->
- <global-exception-mappings>
- <!-- 该元素必须出现,可以出现多次 -->
- <exception-mapping name="" exception="" result="">
- 异常处理资源
- <!-- 下面的元素可以出现0次,也可以出现无限多次 -->
- <param name="参数名">参数值</param>
- </exception-mapping>
- </global-exception-mappings>
- <action name="" class="" method="" convertor="">
- <!-- 下面的元素可以出现0次,也可以出现无限多次 -->
- <param name="参数名">参数值</param>
- <!-- 下面的元素可以出现0次,也可以出现无限多次 -->
- <result name="" type="">
- 映射资源
- <!-- 下面的元素可以出现0次,也可以出现无限多次 -->
- <param name="参数名">参数值</param>
- </result>
- <!-- 下面的元素可以出现0次,也可以出现无限多次 -->
- <interceptor-ref name="">
- <!-- 下面的元素可以出现0次,也可以出现无限多次 -->
- <param name="参数名">参数值</param>
- </interceptor-ref>
- <!-- 下面的元素可以出现0次,也可以出现无限多次 -->
- <exception-mapping name="" exception="" result="">
- 异常处理资源
- <!-- 下面的元素可以出现0次,也可以出现无限多次 -->
- <param name="参数名">参数值</param>
- </exception-mapping>
- </action>
- </package>
- </struts>
0 0
- Struts2配置文件Struts.xml示范
- Struts2 配置文件struts.xml示范模板
- struts2 配置文件 struts.xml
- struts2配置文件 struts.xml
- structs2中全面的配置文件struts.xml文件示范
- Struts2.0配置文件(struts.xml)
- struts2 struts.xml配置文件详解
- struts2:struts.xml配置文件详解
- struts2配置文件—struts.xml
- Struts2:详解配置文件struts.xml
- struts2配置文件struts.xml详解
- struts2:struts.xml配置文件详解
- Struts2:Struts.xml配置文件详解
- Struts2 --- struts.xml配置文件详解
- struts2 配置文件示范说明 xml 格式和 properties 格式
- struts2的struts.xml struts.properties配置文件
- struts2.0中struts.xml配置文件详解
- struts2.0中struts.xml配置文件详解
- HDU 4504
- java 与 javascript
- HDU 1249 三角形(递推)
- Struts中的action传递参数到下个action,jsp时是使用get方法还是set方法
- log
- Struts2配置文件Struts.xml示范
- WinInet HTTP的异步方式使用
- MFC窗口风格
- signal函数理解或者void (*signal(int signum,void(*handler)(int)))(int)理解
- Ubuntu 12.10安装OpenGL
- 深刻理解Linux进程间通信(IPC)
- 单位换算
- java实现的利用HTTP协议原理实现的GET/POST请求的web服务器
- 内存,磁盘,cache等访问速度