带个参数来做登陆页面的账号密码错误的提示
<result name="error" type="redirect">http://localhost/QA/?type=Experiment&t=123</result>
jsp页面上
<div style="width: 100%;top: 0px;position: absolute;">
<%
String t = request.getParameter("t");
if(StringUtils.isNotEmpty(t)){
%>
<h3 style="color:red;text-align: center">用户名密码错误</h3>
<%
}else{
%>
<h3 style="color:red;text-align: center">${msg}</h3>
<%
}
%>
</div>
<result name="error" type="redirect">http://localhost/QA/?type=Experiment&t=123</result>
jsp页面上
<div style="width: 100%;top: 0px;position: absolute;">
<%
String t = request.getParameter("t");
if(StringUtils.isNotEmpty(t)){
%>
<h3 style="color:red;text-align: center">用户名密码错误</h3>
<%
}else{
%>
<h3 style="color:red;text-align: center">${msg}</h3>
<%
}
%>
</div>