package com.hyy.action; import com.opensymphony.xwork2.ActionSupport; public class HelloWorld extends ActionSupport{
private String message;
public String execute() {
message = "hyy";
return INPUT;
} public String getMessage() {
return message;
}
}
第9行
return INPUT,则会找/WEB-INF/content/hello-world-input.jsp
return SUCCESS,则会找/WEB-INF/content/hello-world-success.jsp
return "fail",则会找/WEB-INF/content/hello-world-fail.jsp
以此类推