使用netbeans中碰到的一个问题
问题具体如下:ype Exception report
message An exception occurred processing JSP page /index.jsp at line 32
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 32
29: DriverManager.getConnection(url,user,password);
30: Statement stmt=conn.createStatement();
31: String sql="select * from user";
32: ResultSet rs=stmt.executeQuery(sql);
33: //System.out.print("鎴愬姛");
34:
35: while(rs.next()){
请大神指点下哪里错了,帮忙修改 NetBeans 异常 --------------------编程问答-------------------- 32行出错啦,空指针?sql语句出错(mssql server中user好像是关键字)? --------------------编程问答-------------------- 这与netbeans有什么关系?!!
数据库访问的问题,检查29行是否创建了连接;30行是否获得了Statement ;
31行的SQL命令在数据库的命令方式下是否可以执行
补充:Java , Web 开发