接触Struts2--理解struts.xml标签(二)
来源:互联网 发布:印光法师文钞全集淘宝 编辑:程序博客网 时间:2024/06/03 15:59
struts2的结果集步骤:
1.action类中的方法必须返回一个字符串。
2.返回的字符串要和struts.xml这个配置文件中result标签中的name值相同。
action类可以通过实现Action接口来创建。也可以继承ActionSupport类,一半通过继承actionSupport来实现
result标签:
1.name:和action的返回值相同 可以省略,默认值为"success" ;
2.type:为结果集类型,确定你是用转发或者重定向
在struts-default.xml文件中,
<result-type
name="dispatcher"
class="org.apache.struts2.dispatcher.ServletDispatcherResult"
default="true" 如果不设置type的值,则默认为dispatcher
/>
include标签:
可以包含其他的xml文件。
0 0
- 接触Struts2--理解struts.xml标签(二)
- 接触Struts2--理解Struts.xml标签
- struts2学习(二)struts.xml配置
- Struts2(二)struts.xml详解
- struts2 struts.xml文件<constant>标签说明
- struts2 02 struts.xml文件中的标签
- struts2 struts.xml文件<constant>标签说明
- struts2 struts.xml文件<constant>标签说明
- struts2 struts.xml文件<constant>标签说明
- Struts2(二)---Struts.xml的详细配置
- struts2中理解struts-default.xml
- Struts2初学 Struts.xml详解二
- Struts2笔记二之struts.xml
- Struts2标签(二)
- 首次接触Struts2框架(二)
- struts2中的配置文件的<constant>标签(struts.xml自动加载)
- Struts2初学 struts.xml详解一+Struts2初学 Struts.xml详解二
- Struts2框架的总结二------OGNL&Struts标签
- 阿里云服务器CentOS下安装mysql
- c++编程之命名空间
- @SuppressLint("NewApi")和@TargetApi()的区别
- 0033-excel导出
- 纳什均衡说了些什么
- 接触Struts2--理解struts.xml标签(二)
- eclipse运行android工程时出现Unsupported major.minor version 52.0错误
- Android开源项目推荐之「网络请求哪家强」
- 屏幕适配工具
- web轻巧的图表表示数据——echart
- 移动宽带之优化
- 错误 1 error MSB8008: 指定的平台工具集(v110)未安装或无效。请确保选择受支持的 PlatformToolset 值
- 从 __proto__ prototype 说起
- 适配器模式(Adapter Class/Object)