package com.achala.saraswathi.action;
import com.achala.saraswathi.data.AdminBE;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
public class AdminLoginAction extends ActionSupport{
private AdminBE adminBE;
public String execute(){
return Action.SUCCESS;
}
public String adminLogin(){
if(adminBE.getUserName().equals("admin")&&adminBE.getPassword().equals("admin")){
return Action.SUCCESS;
}
addActionError("Invalid username or password");
return Action.INPUT;
}
public AdminBE getAdminBE() {
return adminBE;
}
public void setAdminBE(AdminBE adminBE) {
this.adminBE = adminBE;
}
}
单击该提交按钮后
ParametersInterceptor - Unexpected Exception caught Error setting expression 'x' with value
错误来了,我不知道为什么?