第五课 Struts的控制器【续】Action类的execute()方法
来源:互联网 发布:java程序员如何赚外快 编辑:程序博客网 时间:2024/06/15 11:42
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException ;
2.Action类的execute()方法的参数和返回值:
– execute()方法包含以下参数:
–ActionMapping:包含了这个Action的配置信息,和strutsconfig.xml文件中的<action>元素对应。
–ActionForm:包含了用户的表单数据,当Struts框架调用
execute()方法时,ActionForm中的数据已经通过了表单验证。
–HttpServletRequest:当前的HTTP请求对象
–HttpServletResponse:当前的HTTP响应对象
–Action类的execute()方法返回ActionForward对象,它包含了请求转发路径信息。
3.内置的Struts Action类:
–org.apache.struts.actions.ForwardAction
–org.apache.struts.actions.IncludeAction
–org.apache.struts.actions.DispatchAction
–org.apache.struts.actions.LookupDispatchAction
–org.apache.struts.actions.SwitchAction。
4.模型代表应用的业务数据和业务逻辑。Struts作为一个WEB框架并没有为创建模型组件提供现成的
框架。但是Struts允许使用其它模型框架来处理应用的业务逻辑。比如:EJB、JDO、JavaBean、
ORM、Spring等。
- 第五课 Struts的控制器【续】Action类的execute()方法
- Action的execute()方法
- Struts Action的execute方法不执行问题
- struts学习笔记--解决了struts action中的execute方法不执行的问题
- 如何在struts中的action的execute方法()中弹出对话框
- struts中拦截器拦截Action中的execute方法后的具体拦截流程
- Struts的Action类
- dispatchaction与action的区别 问啥Action自定义类不用execute方法
- Struts的控制器如何知道什么样的信息转发到什么样的Action类呢?
- 编写开发中用的Action的execute()方法
- Action的生命周期及调用非execute方法
- Struts控制器组件-Action
- Struts 2 Action 的扩展名修改方法
- struts action的4种配置方法
- struts中action的修改方法
- struts之Action的调用方法
- struts的控制器组件
- [置顶] PHP反射小试: 提取控制器的action方法
- Android 文件下载,断点续传,进度更新
- STL_map——map::equal_range
- Intellij IDEA +genymotion安装配置
- list 的c实现
- Eclipse快捷键的使用
- 第五课 Struts的控制器【续】Action类的execute()方法
- 使用easyui的datetimebox插件输入日期,同时对日期进行验证。
- Reorder List
- HDU 4858 项目管理(模拟)
- HDU2612---(两次BFS)
- 计算机网络简要笔记
- jQuery ajax乱码问题解决
- 为何windows dos和Linux shell有这样的差别??
- 直接选择排序