Struts1.x原理图--时序图,xml配置
来源:互联网 发布:php html 表单 编辑:程序博客网 时间:2024/05/17 08:02
对应的时序图
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
// Was this transaction cancelled?
if (isCancelled(request)) {
if (log.isInfoEnabled()) {
log.info(
" "
+ mapping.getAttribute()
+ " - Registration transaction was cancelled");
}
removeFormBean(mapping, request);
return (mapping.findForward("success"));
}
return mapping.findForward("success");
}
上面为何不直接在Action的方法中直接返回视图页面。而是把success对应的index.jsp放到配置文件中
实现的是解耦。在源代码中不能看到跳转的页面具体是什么了。
对应着struts-config中的
<!-- Registration Actions -->
<action path="/registration" forward="/registration.jsp" />
<action path="/registration-submit"
type="org.apache.struts.webapp.validator.RegistrationAction"
name="registrationForm"
scope="request"
validate="true"
cancellable="true"
input="input">
<forward name="input" path="/registration.do" />
<forward name="success" path="/index.jsp" />
</action>
扩展:http://liuxi1024.iteye.com/blog/1113398
- Struts1.x原理图--时序图,xml配置
- struts1.x struts-config.xml配置详解
- struts1.x struts-config.xml配置详解
- struts1.*原理图
- struts1.x-config.xml
- 原理图和时序分析
- 使用Struts1.x 与 struts2.x下的web.xml的配置
- struts1.x框架核心配置
- struts1.x上传文件配置
- 片选,怎么看时序图,电路原理图
- 片选,怎么看时序图,电路原理图
- struts1配置(xml,struts-config.xml)
- struts1.x环境配置及登陆例子
- struts1.x 标签库的配置
- java-struts1.x框架-核心配置1
- struts1.x+ibatis+spring配置整合
- Struts1框架学习(二)--struts1-config.xml的配置
- struts1的运行原理(用户登录验证时序图)
- 写一个函数,判断不同模式处理器的返回值
- iOS学习之UINavigationController详解与使用(三)ToolBar
- LoadRunner在性能测试工作中遇到的问题以及解决办法小结
- spring_spring容器以外类获取spring容器内部Bean
- 奋斗黑马程序员----Java之多线程讲解(一)
- Struts1.x原理图--时序图,xml配置
- static和const的比较和解释
- android aapt使用小结
- 大气做人,人生无悔
- pthread_kill 与信号处理
- iphone聊天用几种图形(表情)与文字混排的实现与比较
- Install Me
- Proof of work - 工作量证明
- 大气做人,人生无悔