1.配置文件里的配置
<!--全局结果集--> <global-results> <result name="error">/login.html</result> </global-results>
2.页面获取错误信息
<%--获取全局结果集的错误--%> <a style="color: red" href="#"><s:actionerror></s:actionerror></a>
3.错误信息设置(helloAction)
//用全局异常结果处理返回异常信息 this.addActionError("用户名或者密码错误");