JSP+Servlet + JDBC 实现简单的登录验证模块 具体实现参见 http://blog.sina.com.cn/s/blog_8e392fc20101akf8.html 这里我用的是SQL2005,调试LoginServlet时遇到 java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver 但buildpath已导入sqljdbc4.jar; 还需要将该包复制到D:\apache-tomcat-6.0.20\lib