用<s:property value="errors">显示记录的所有内容,用errors.name[ ]显示想要的内容。
<s:property value="errors.login[0]"/>
//[0]是第一个记录,[1]是第二个记录,如果要显示第二个记录,就是<s:proerty value="error.name[1];>
if (user == null) {
addFieldError("login", "用户名或密码出错");
return error;
}else{
return success;
}