您的位置:首页 > 其它

带个参数来做登陆页面的账号密码错误的提示

2018-03-14 17:18 316 查看
带个参数来做登陆页面的账号密码错误的提示
          <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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐