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执行成功。显示结果视图(页面)给用户。
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值