Struts2 三种action类
来源:互联网 发布:bbs url 网络推广 编辑:程序博客网 时间:2024/04/25 04:55
普通类Action
调用方便,可融合性高
public class PojoAction {
public String execute() throws Exception{
return “success”;
}
}
继承Action类Action
返回宏 进行方法覆盖,相对于第一种更加不容易出错
public class ActionAction implements Action {
@Override
public String execute() throws Exception {
return SUCCESS;
}
}
最推荐第三种
继承ActionSupport,提供验证方法
最标准
public class ActionSuportAction extends ActionSupport {
@Override
public void validate() {
super.validate();
}
@Overridepublic String execute() throws Exception { return super.execute();}
}
0 0
- Struts2 三种action类
- Struts2(三)---Action类
- struts2创建Action的三种方式
- Struts2创建Action的三种方法
- Struts2 action的三种实现方式
- Struts2 Action的三种实现方法
- Struts2中action三种方式
- struts2三种action请求处理
- Struts2:action的三种开发方式
- Struts2框架(三)Action
- [struts2]Struts2 Action扩展名的三种修改方法
- Struts2——Action(三)
- Struts2 url介绍和 Action类可以三种实现方式
- Struts2中Action访问Servlet API的三种方法
- Struts2中Action访问Servlet API的三种方法
- Struts2中表单与Action传递数据三种方式
- struts2 Action获取表单传值的三种方法
- struts2 中action跳转的三种配置
- Python基础篇—Pandas应用(二)
- MyEclipse安装JS代码提示插件——Spket插件)
- Tomcat Server.xml详解
- Java基于POI读取Excel工具类
- 03_Elasticsearch如何安装以及相关插件的介绍
- Struts2 三种action类
- 服务器配置ASP.NET服务过程
- Digimat-MF:广义平均结果(General averaging results)
- 笔试选择题二十
- ffmpeg 添加水印LOGO
- thinkphp wap web 同时开发
- vgg16构造模型图
- MMORPG 游戏服务器架构
- UVa OJ 1607 - Gates