Action中五个常量解释,(success,error,input,login,none)

英文注释 中文释义
staticString ERROR The actionexecution was a failure. Show an error view, possibly asking theuser to retry entering data. Action执行失败。显示一个错误的视图(页面),这个页面可以要求用户再次输入相关数据。
staticString INPUT The actionexecution require more input in order to succeed. This result istypically used if a form handling action has been executed so as toprovide defaults for a form. The form associated with the handlershould be shown to the end user.This result is also used if the given input params are invalid,meaning the user should try providing input again. Action的执行成功需要更多的输入。这个结果是一个典型的结果,它表明如果一个表单通过提供默认的表单来操作一个Action。这个表单会显示给最终用户。这个结果也用于用户输入无效,意味着用户需要再次输入
static StringLOGIN The actioncould not execute, since the user most was not logged in. The loginview should be shown. Action不能执行,因为用户没有登录。已登录的画面会被关闭。
staticString NONE The actionexecution was successful but do not show a view. This is useful foractions that are handling the view in another fashion likeredirect. Action执行成功,但是不会显示一个视图。通常产生这种情况的原因是被其他视图重定向了。
staticString SUCCESS The actionexecution was successful. Show result view to the enduser. Action执行成功。显示结果视图(页面)给用户。

转载于:https://www.cnblogs.com/jimloveq/p/10609479.html

Action中五个常量解释,(success,error,input,login,none)相关推荐

  1. Struts2中五个重要的常量

    一.五个常量的位置:位于xwork核心包下的Action字节码文件里 二.五个常量的介绍: a: SUCCESS 1 public static final String SUCCESS = &quo ...

  2. 安卓Intent的Action中的常值变量:窗口action常量(android.intent.action.+xxx),广播action常量(android.intent.action.+xxx)

    全栈工程师开发手册 (作者:栾鹏) 安卓教程全解 安卓Intent的Action中的常值变量:窗口action常量,广播action常量 窗口action名称常量,"android.inte ...

  3. struts2实验2:struts2.xml action中* ,{}以及${}

    p.s 关键在于struts.xml中的匹配,使用* ,{}以及${}可以让代码更加简洁清晰 代码核心思路 在struts.xml中通过路由(url)去指定控制逻辑的Action中的方法,例如 < ...

  4. No result defined for action com.lk.IndexAction and result success

    意图访问一个 /es/index.action 竟然出现: [SAE ] ERROR [05-11 13:54:32] [http-80-5] com.opensymphony.xwork2.util ...

  5. oracle中imp命令具体解释

    oracle中imp命令具体解释 Oracle的导入有用程序(Import utility)同意从数据库提取数据,而且将数据写入操作系统文 件.imp使用的基本格式:imp[username[/pas ...

  6. struts2 action中result参数详解

    chain 用来处理Action链 com.opensymphony.xwork2.ActionChainResult dispatcher 用来转向页面,通常处理JSP org.apache.str ...

  7. 深入理解C++中五种强制类型转换的使用场景

    深入理解C++中五种强制类型转换的使用场景 1.C风格的强制类型转换 2.C++风格的强制类型转换 2.1.static_cast 2.1.1.用于基本内置数据类型之间的转换 2.1.2.用于指针之间 ...

  8. Python中的__init__()方法整理中(两种解释)

    解释一:看懂了就不用看第二种了 __init__()方法是Python学习当中重要的基础知识,__init__()方法意义重大的原因有两个.第一个原因是在对象生命周期中初始化是最重要的一步:每个对象必 ...

  9. struts2 的一个action中配置多个result input

    主题:struts2 的一个action中配置多个result input 讨论下 本文来自: 浪曦视频在线 作者: hoojo 发表于: 2009-6-4 19:05 阅读: 2005 人 收藏 看 ...

最新文章

  1. linux c brotli压缩简介
  2. tamper绕WAF小结
  3. phpMyAdmin import.php 跨站脚本漏洞
  4. wxWidgets:在对话框之间共享信息
  5. java await signal_java Condtion await方法和signal方法解析
  6. 注册表操作(VC_Win32)
  7. Shell 脚本的时间的加减,以及时间差的计算
  8. C# WPF MVVM开发框架Caliburn.Micro常用功能指南②
  9. Notes of the scrum meeting(2013/10/23)
  10. 3-unit2 高级网络配置
  11. 服务器搬迁方案_机房搬迁的一般步骤及实施方案
  12. 基于java的健身房会员卡管理系统ssh框架
  13. ubuntn下串口工具minicom ,kermit的使用
  14. “git pull”如何强制覆盖本地文件?
  15. STM32F407三重ADC配置
  16. c++工具库大全(值得收藏)
  17. 水平、垂直居中布局大全
  18. 手脫 -- PECompact 2.x -gt; Jeremy Collake
  19. 极客日报:日本的首颗 5nm 芯片公布;虾米音乐正式关停;网易云音乐再次喊话酷狗...
  20. RestSharp with polly 封装

热门文章

  1. 一本通1655数三角形
  2. echarts X轴数据显示不全问题
  3. 在centos 下安装配置基于gitosis 的git 服务
  4. 13个风格独特的关于页面(About Pages)设计
  5. 用 GDI 操作 EMF 文件[8]: 绘制图元文件时改变画笔与画刷
  6. EasyDSS高性能RTMP、HLS(m3u8)、HTTP-FLV、RTSP流媒体服务器启用https服务申请免费证书...
  7. php+ tinymce粘贴word
  8. C#设计模式之十七中介者模式(Mediator Pattern)【行为型】
  9. 结对开发----找出“水王
  10. javascript跨域实践