jsp页面
<s:fielderror value="loginErr" theme="simple"/>
action
public String execute(){
String str = "failure";
this.addFieldError("loginErr", "用户名或密码不正确。");
if(uDao.queryUsers(users)){
str = "success";
this.addFieldError("loginErr", "");
}
return str;
}