继承ActionSupport类及Result结果集介绍
来源:互联网 发布:ubuntu uefi启动盘 编辑:程序博客网 时间:2024/05/21 07:06
继承ActionSupport类的作用:
public class ActionSupport implements Action, Validateable, ValidationAware, TextProvider, LocaleProvider, Serializable {
从上面的源码中可以看出,ActionSupport实现了上面点这些类,所以继承ActionSupport之后就具备了这些类的功能。
Validateable类具有验证功能,TextProvider类用于实现国际化功能。
Action的模式:
在action的构造器中输出一句话,在浏览器中多次请求该action,可以看到构造器执行了好多次,所以action是多例的。
public class ScopeAction extends ActionSupport{ScopeAction(){System.out.println("create action!");}public String execute(){System.out.println("hello");return "index";}}
Result结果集:
转发:
0 0
- 继承ActionSupport类及Result结果集介绍
- struts 中继承ActionSupport类
- struts 中继承ActionSupport类
- struts 中继承ActionSupport类
- 继承ActionSupport
- 继承ActionSupport
- 继承 actionSupport
- 26、Result解析之ResultMap(结果集)介绍
- Struts2 错误 “No result defined” 与 ActionSupport 类
- Action类为何要继承ActionSupport
- Action类为何要继承ActionSupport
- struts2中继承ActionSupport类的作用
- Struts2-包的继承、result属性、全局及动态结果配置
- result结果集
- JDBC----Result结果集
- 为什么要继承ActionSupport
- Struts2继承ActionSupport接口
- result常用结果类型(dispatcher,redirect,redirectAction)及全局result
- JNI里面调用Java,JNI非JAVA线程里面调用Java方法
- 用python列出当前目录的.py文件
- 【Python基础】模块
- Java
- easyUI 笔记
- 继承ActionSupport类及Result结果集介绍
- JavaScriptのDOM中的事件对象(W3C标准)
- hdu2147
- ny 744 蚂蚁的难题(一)【位运算】
- Android PopupWindow 的显示位置
- Binary Search Tree Iterator —— Leetcode
- IOS开发UI—Button基础
- HDU1027(Ignatius and the Princess II)
- Combination Sum II