while(rs.next())
{
  
}

解决方案 »

  1.   

    没劲儿for循环很简单了,和C++是一样的JSP里边也有Connection和RecordSet对象
      

  2.   

    asp:
    for i=0 to 100
    response.write "test"
    nextjsp:
    for(int i=0; i<100; i++){
    out.println("test");
    }asp:
    do while not rs.eof
    response.write "test"
    rs.movenext
    loopjsp:
    while(!rs.next()){
    out.pritnln("test");
    }随便写
      

  3.   

    asp:
    for i=0 to 100
    response.write "test"
    nextjsp:
    for(int i=0; i<100; i++){
    out.println("test");
    }asp:
    do while not rs.eof
    response.write "test"
    rs.movenext
    loopjsp:
    while(!rs.next()){
    out.pritnln("test");
    }随便写
      

  4.   

    把上面兄弟的for(int i=0; i<100; i++){
    改成for(int i=0; i<101; i++){
    就对了!