27. Struts2运行流程分析
来源:互联网 发布:手机音乐转调软件 编辑:程序博客网 时间:2024/06/05 15:17
- 请求发送给 StrutsPrepareAndExecuteFilter
- StrutsPrepareAndExecuteFilter 询问 ActionMapper: 该请求是否是一个 Struts2 请求(即是否返回一个非空的 ActionMapping 对象)
- 若 ActionMapper 认为该请求是一个 Struts2 请求,则 StrutsPrepareAndExecuteFilter 把请求的处理交给 ActionProxy
- ActionProxy 通过 Configuration Manager 询问框架的配置文件,确定需要调用的 Action 类及 Action 方法
- ActionProxy 创建一个 ActionInvocation 的实例,并进行初始化
- ActionInvocation 实例在调用Action的过程前后,涉及到相关拦截器(Intercepter)的调用。
- Action 执行完毕,ActionInvocation 负责根据 struts.xml 中的配置找到对应的返回结果。调用结果的 execute 方法,渲染结果。在渲染的过程中可以使用Struts2 框架中的标签。
- 执行各个拦截器 invocation.invoke() 之后的代码
- 把结果发送到客户端
阅读全文
0 0
- 27. Struts2运行流程分析
- struts2运行流程分析
- Struts2-运行流程分析
- Struts2运行流程分析
- struts2运行流程分析
- Struts2 运行流程分析
- Struts2运行流程分析
- Struts2 运行流程分析
- Struts2-12 Struts2运行流程分析
- 结合源码分析Struts2运行流程
- Struts2源码分析(二)Struts2运行流程分析
- “玩转”Java系列—Struts2 运行流程分析
- 【struts2】Struts2的运行流程
- 【struts2】Struts2的运行流程
- Struts2的运行流程
- Struts2运行流程研究
- struts2的运行流程
- Struts2运行流程
- CentOS 6.5 中文输入法设置
- 笔记
- 算法设计与应用基础:第十三周(3)
- pandas.dataframe中根据条件获取元素所在的位置(索引)
- 【使用技巧】VS2012常用快捷键
- 27. Struts2运行流程分析
- 三角形
- WCF 入门 通信
- ffmpeg 接收解码rtp h264视频流
- 刷清橙OJ--A1029.补充函数
- 实训周三
- 干货!ARM常用的22个概念!快收藏
- 【软考总结】——组合模式
- Python中的列表(下)