日期:2014-05-18 浏览次数:20613 次
if("zhangsan".equals(name) && "1234".equals(pwd)) { ServletContext context=getServletContext(); RequestDispatcher rd=context.getRequestDispatcher("/welcome"); rd.forward(req,resp); } else { RequestDispatcher rd=req.getRequestDispatcher("login2"); rd.include(req,resp); }