喝水都塞牙

专注IT的求知者

struts2的返回值常量

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不能执行,因为用户没有登录。已登录的画面会被关闭。

原文地址:https://blog.csdn.net/tonghuawanli/article/details/52324952

阅读更多
文章标签: struts2 返回值 常量
个人分类: java框架
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭