大家过来帮我看看
程序代码:
<%@ page contentType="text/html;charset=gbk"%> <%@ page import="sql.conn" %> <%@ page import="java.sql.*" %> <html> <head> </head> <body> <% conn conection=new conn(); ResultSet stmt=null; stmt=conection.Query(); while(stmt.next()){ %> <%=stmt.getString("bk_id") %> <%=stmt.getString("bk_name") %> <% } %> </body> </html>以上是jsp中的代码!在我显示这个页面时
出现
org.apache.jasper.JasperException: An exception occurred processing JSP page /xx.jsp at line 16
13: ResultSet stmt=null;
14:
15:
16: stmt=conection.Query();
17:
18: while(stmt.next()){
19: %>
请问这个错误该怎么解决!
13: ResultSet stmt=null;
14:
15:
16: stmt=conection.Query();
17:
18: while(stmt.next()){
19: %>