while(rs.next()){
boolean sec=rs.getBoolean("sec"); }
rs.close();这段代码要catch sql exception,如果是在jsp中不是必须的,在普通java程序中(包括servlet)要catch
boolean sec=rs.getBoolean("sec"); }
rs.close();这段代码要catch sql exception,如果是在jsp中不是必须的,在普通java程序中(包括servlet)要catch
throws SQLException
try{
while(rs.next()){
boolean sec=rs.getBoolean("sec"); }
rs.close();
}catch(Exception e){}
public ResultSet getResult(String sSql,Connection conn)后面加上
throws IOException
试试
throws SQLException
不加try是不行的!!!!