猿问

Login lone= vs.validateSer(login.getUsername(),login.getPassword());始终无法执行

package action;


import service.validateService;

import service.impl.loginService;

import vo.Login;

import com.opensymphony.xwork2.ActionSupport;


public class LoginAction extends ActionSupport{


private static final long serialVersionUID = 1L;

private Login login;

protected validateService vs;


public String execute() throws Exception{


Login lone= vs.validateSer(login.getUsername(),login.getPassword());


if(lone!= null){

return SUCCESS;

}

else{

return ERROR;

}

}


public void adduser(String username,String password){

vs.saveService(username, password);

}


public Login getLogin(){

return login;

}

public void setLogin(Login login){

this.login=login;

}

public validateService getValidateService(){

return vs;

}

public void setValidateService(validateService vs){

this.vs=vs;

}


}


枫夜流萤
浏览 929回答 1
1回答

sunbohan00

是怎么个无法运行,把报错信息拿出来。
随时随地看视频慕课网APP

相关分类

Java
我要回答