源代码:
package com.atguigu.javaweb;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.sql.Connection; //大神解答!!!
public class LoginServlet3 extends HttpServlet {
/**
*
*/
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)