package org;
import com.opensymphony.xwork2.ActionSupport;
public class LoginAction extends ActionSupport{
private Login login1;
public String excute() throws Exception{
if(login1.getName().equals("chen"))
return SUCCESS;
else
return ERROR;
}
public Login getLogin(){
return login1;
}
public void setLogin(Login login){
this.login1=login;
}
}