1.把
登录页面:login.html
改成login.jsp (关于为什么再说!)
改成login.jsp (关于为什么再说!)
2.doget的代码改成如下:
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String url2 = "/login.jsp";
getServletContext().getRequestDispatcher(url2).forward(req,
resp);
}
throws ServletException, IOException {
String url2 = "/login.jsp";
getServletContext().getRequestDispatcher(url2).forward(req,
resp);
}
3. 改mysql连接数据库的地方