10.Struts2_ActionSupport
来源:互联网 发布:淘宝网男徒步凉鞋 编辑:程序博客网 时间:2024/06/03 17:42
ActionSupport
1). ActionSupport 是默认的 Action 类: 若某个 action 节点没有配置 class 属性, 则 ActionSupport 即为待执行的 Action 类. 而 execute 方法即为要默认执行的 action 方法
<action name="testActionSupport"> <result>/testActionSupport.jsp</result></action>
- 1
- 2
- 3
等同于
<action name="testActionSupport" class="com.opensymphony.xwork2.ActionSupport" method="execute"> <result>/testActionSupport.jsp</result></action>
- 1
- 2
- 3
- 4
- 5
2). 在手工完成字段验证, 显示错误消息, 国际化等情况下, 推荐继承 ActionSupport.
演示
所以,在业务稍微复杂些后,推荐使用ActionSupport。
struts-2.5.2-all.zip https://yunpan.cn/cMXkrZCZYeha7 访问密码 874b
- ').addClass('pre-numbering').hide();
阅读全文
0 0
- 10.Struts2_ActionSupport
- Struts2_ActionSupport和通配符映射和动态方法调用
- 10.GetLocalTime
- 10. 结束语
- 10.animation
- 10.接口
- 10. python
- 10.头
- 10.队列
- 10.UIFont
- 10.OGNL
- 10.cpp
- 10.指针
- 10.类别
- 10. dgs
- 10.UIProgressView
- 10. UIPickerView
- 10.公比
- 堆排序
- python爬取的小说存入mysql数据库
- git+rsync+邮件通告
- Hibernate Query 的 list 和iterate方法缓存的区别
- 1032. 挖掘机技术哪家强(20)
- 10.Struts2_ActionSupport
- uva 10635
- 编程模式 单例模式
- GNU STL vector push_back insert
- 构建maven项目报cannot be read or is not a valid ZIP file 错
- maven工程把依赖jar包一起打进来
- 设计模式初探之策略模式
- 论文发表费用一般是多少
- C++风格_注释