jsp错误!求大神帮忙!
ResultSetrs;re=stmt.executeQuery(sql);//检查半天,发现只有这里可能出错:数据库连接成功、sql语法没有错误!有没有可能是数据库的表...
ResultSet rs;
re=stmt.executeQuery(sql); //检查半天,发现只有这里可能出错:数据库连接成功、sql语法没有错误!
有没有可能是数据库的表格问题?虽然检查过没问题。
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exceptionorg.apache.jasper.JasperException: An exception occurred processing JSP page /sadsadadasdasdp.jsp at line 14
11: Connection conn=con.getConnection();
12: Statement stmt=conn.createStatement();
13: String queryAll="INSERT INTO text(name,password) VALUES('qwe','qwe123')";
14: stmt.executeUpdate(queryAll);
15: %>
16: <jsp:forward page="sucess.jsp"></jsp:forward>
17: </body> 展开
re=stmt.executeQuery(sql); //检查半天,发现只有这里可能出错:数据库连接成功、sql语法没有错误!
有没有可能是数据库的表格问题?虽然检查过没问题。
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exceptionorg.apache.jasper.JasperException: An exception occurred processing JSP page /sadsadadasdasdp.jsp at line 14
11: Connection conn=con.getConnection();
12: Statement stmt=conn.createStatement();
13: String queryAll="INSERT INTO text(name,password) VALUES('qwe','qwe123')";
14: stmt.executeUpdate(queryAll);
15: %>
16: <jsp:forward page="sucess.jsp"></jsp:forward>
17: </body> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询