用户权限过滤.docxVIP

  • 1
  • 0
  • 约2.51千字
  • 约 5页
  • 2018-05-22 发布于福建
  • 举报
用户权限过滤使用EL表达式+ 核心标签 + servlet + JSP 实现新建登录页面bodyform action=${pageContext.request.contextPath }/login method=post用户名:input type =text name=usernamebr密码:input type=password name=passwordbrinput type=submit value=登录/formspan style=color:red;${wrongMsg }/spana href=${pageContext.request.contextPath }/user/selectAll.jsp查询全部/a/body后台servlet//接受参数String username = req.getParameter(username);String password = req.getParameter(password);HttpSession session = req.getSession();/** * 去数据库验证是否拥有权限 */if(rose.equals(username) 123.equals(password)){//如果登陆成功,取消错误信息显示session.setAttribute(wrongMsg, null);//用户登

文档评论(0)

1亿VIP精品文档

相关文档