摘要: @WebServlet("/reply") public class ReplyServlet extends HttpServlet { @Override protected void service(HttpServletRequest req, HttpServletResponse res 阅读全文
posted @ 2019-11-29 08:54 wu110111‬ 阅读(983) 评论(0) 推荐(0) 编辑
摘要: 案例:当登陆密码或账号不正确时 提示 使用Requset对象中的作用域存储数据 语法:req.setAttribute(key, value);//键值对存在 当密码不存在时,设置作用域 else { // resp.sendRedirect("login.jsp"); req.setAttribu 阅读全文
posted @ 2019-11-29 08:47 wu110111‬ 阅读(126) 评论(0) 推荐(0) 编辑