求救,万分感谢,关于No suitable driver
jsp吧
全部回复
仅看楼主
level 1
艾_你一生 楼主
<%String name = formatStr(request.getParameter("name"));String password = formatStr(request.getParameter("password"));try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");}catch(ClassNotFoundException e){ System.out.println(e);}try{ String url = "Jdbc.Odbc.jsp"; Connection con = DriverManager.getConnection(url); Statement sql = con.createStatement(); String condition = "update enter set name = '" + name + "' ," +"password='"+password+"'"; sql.executeUpdate(condition); }catch(SQLException e){ System.out.println(e);}%>报错java.sql.SQLException: No suitable driver谢谢高手的指教
2008年05月18日 02点05分 1
level 1
java.sql.SQLException: No suitable driver
2010年05月10日 09点05分 2
level 1
用什么数据库 就下载匹配的驱动到lib下
目前主流的数据库都有JDBC支持
2010年06月03日 09点06分 3
1