发表评论
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。
package org.lxh.struts2.demo;
import com.opensymphony.xwork2.ActionSupport;
public class HelloAction extends ActionSupport {
private String msg;
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
System.out.println("**************************");
this.msg = msg;
}
public String execute() throws Exception {
if ("mldnlxh".equalsIgnoreCase(this.msg)) {
return ActionSupport.SUCCESS;
} else {
return ActionSupport.ERROR;
}
}
}
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。