小小问题
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 23 in the jsp file: /articleDetail.jsp
The method executeQuery(Statement, String) is undefined for the type DB
20: Connection conn = DB.getconn();
21: String sql = "select * from article where id = " + id;
22: Statement stmt = DB. createStmt(conn);
23: ResultSet rs = DB.executeQuery(stmt, sql);
24: if(rs.next()) {
25: a = new Article();
26: a.initFromRs(rs);
23句找了半天,还找不到那里错了,求解啊。