文件名称:http-request例子
文件大小:5.41MB
文件格式:ZIP
更新时间:2023-04-30 14:51:26
request
//3.2使用BeanUtils封装 try { BeanUtils.populate(loginUser,map); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } //4.调用UserDao的login方法 UserDao dao = new UserDao(); User user = dao.login(loginUser); //5.判断user if(user == null){ //登录失败 req.getRequestDispatcher("/failServlet").forward(req,resp); }else{ //登录成功 //存储数据 req.setAttribute("user",user); //转发 req.getRequestDispatcher("/successServlet").forward(req,resp); }
【文件预览】:
day14
----src()
--------cn()
--------druid.properties(135B)
----druid.properties(135B)
----day14.iml(1KB)
----web()
--------index.jsp(301B)
--------login.html(373B)
--------WEB-INF()