第一步:创建login.jsp文件写出登录页面代码 第二步:创建Login.java文件,继承HttpServlet类,在Login类中编写doGet(),doPost方法并在doGet()中调用doPost方法