代码:
Login类
package com.ccit;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.GenericServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebServlet;
@WebServlet("/login")
public class Login extends GenericServlet {
@Override
public void service(ServletRequest req, ServletResponse resp)
throws ServletException, IOException {
resp.setContentType("text/html;charset=gbk");
PrintWriter out=resp.getWriter();
out.println("");
out.print("");
out.print("");
out.println("用户登录 ");
out.println("");
out.println("");
out.println("");
out.println("");
out.println(" ");
out.println("");
out.println("