我用 
<%//数据库已经连接上 
String check = new String(request.getParameter("check").getBytes("ISO8859_1"),"GBK"); 
  
sql = "select count(*) as total from students where sfjf=1 and grade=?"; 
PreparedStatement ps =conn.prepareStatement(sql); ps.setBytes(1,check.getBytes("GB2312"));   rs =ps.executeQuery(); 
%> 
我读取结果集中的数据时用: 
<%=rs.getInt("total")%> 
但是提示有错,这是怎么回事? 
应该如何读取呀?