检查你取出的两个字段是否都是String型
while(sqlRst.next())

解决方案 »

  1.   

    因为在access中没有string类型的格式!只有文本格式!
      

  2.   

    //获取记录总数 
    sqlRst.last(); 
    intRowCount = sqlRst.getRow(); 改为:
    strSQL = "select count(*) as totalcount  from MA_YH"; 
    sqlRst = sqlStmt.executeQuery(strSQL); 
    intRowCount = sqlRst.getInt("totalcount"); 
    sqlRst.close();
      

  3.   

    不知道大家看到了没有错误的地方有一个提示:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    不能编译,是不是系统变量还没有设好呢?