Struts2 常量(SUCCESS、NONE、ERROR、INPUT、LOGIN)_详解

SUCCESS
static final String SUCCESS
英文解释:
The action execution was successful. Show result view to the end user.
汉语

NONE
static final StringNONE
英文解释:
The action execution was successful but do not show a view. This is useful for actions that are handling the view in another fashion like redirect
汉语翻译:
Action执行成功,但是不会显示一个视图。通常产生这种情况的原因是被其他视图重定向了。

ERROR
static final String
英文解释:
The action execution was a failure. Show an error view, possibly asking the user to retry entering data
汉语翻译:
Action执行失败。显示一个错误的视图(页面),这个页面可以要求用户再次输入相关数据。

INPUT
static final StringINPUT
英文解释:
The action execution require more input in order to succeed. This result is typically used if a form handling action has been executed so as to provide defaults for a form. The form associated with the handler should 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。这个表单会显示给最终用户。
这个结果也用于用户输入无效,意味着用户需要再次输入。

LOGIN
static final StringLOGIN
英文解释:
The action could not execute, since the user most was not logged in. The login view should be shown.
汉语翻译:
Action不能执行,因为用户没有登录。已登录的画面会被关闭。

转载处:
http://blog.csdn.net/metempsychosis_/article/details/15504597

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值