|
在jsp中用bean和servlet联合实现用户注册、登录(3) }catch(NullPointerException e){ System.out.println(e.toString()); return false; } }
//结果集指针跳转到某一行 public boolean rs_absolute(int row) { try{ this.rs.absolute(row); return true; }catch(SQLException e){ System.out.println(e.toString()); return false; } }
public void rs_afterLast() { try{ this.rs.afterLast(); }catch(SQLException e){ System.out.println(e.toString()); } }
public void rs_beforeFirst() { try{ this.rs.beforeFirst(); }catch(SQLException e){ System.out.print(e.toString()); } }
public void rs_close() { try{ this.rs.close(); }catch(SQLException e){ System.out.print(e.toString()); } }
public void rs_deleteRow() { try{ this.rs.deleteRow(); }catch(SQLException e){ System.out.print(e.toString()); } }
public boolean rs_first() { try{ this.rs.first(); return true; }catch(SQLException e){ System.out.print(e.toString()); return false; } }
public String rs_getString(String column) { try{ return this.rs.getString(column); }catch(SQLException e){ System.out.println(e.toString()); return null; } }
//此方法用于获取大段文本,
|