[size=large]ActionTest类继承自ActionSupport,在ActionTest中重写execute()方法,它的返回值是不是必须是"SUCCESS"?
看了API,ActionSupport的execute()方法:[/size]
execute
public String execute()
throws ExceptionA default implementation that does nothing an returns "success".
Subclasses should override this method to provide their business logic.
See also Action.execute().
Specified by:
execute in interface Action
Returns:
returns Action.SUCCESS
Throws:
Exception - can be thrown by subclasses.
谢谢
ActionSupport 实现了 Action 接口
Action 接口有如下常量
Field Summary
static String ERROR
The action execution was a failure.
static String INPUT
The action execution require more input in order to succeed.
static String LOGIN
The action could not execute, since the user most was not logged in.
static String NONE
The action execution was successful but do not show a view.
static String SUCCESS
The action execution was successful.
当然你还可以按自己的需求配返回其它的
但必须如你在*..中的 name 值一致
不是。。根据情况,你可用自己来定义