自写的分页有什么不对
帮我看看吧,我不知道是哪错了.
<!-- index.jsp -->
<%@ page contentType= "text/html;charset=gbk " %>
<%@ page import= "java.sql.* " %>
<jsp:useBean id= "cn " class= "dbManager.Conn " scope= "page "/>
<html>
<head>
<title> jsp实现分页 </title>
</head>
<body>
<%
int count=cn.getCount();
String pages=request.getParameter( "curpage ");
int intPage;
if(pages==null||pages.equals( " ")){
intPage=0;
}else{
//intPage=Integer.parseInt(pages);
}
int countPage=count/3;
if(countPage%3> 0) countPage++;
if(intPage <1) intPage=1;
if(intPage> countPage) intPage=countPage;
ResultSet rs=cn.getRecord(intPage);
out.print( " <table> ");
out.print( " <tr> ");
out.print( " <td> ID </td> <td> OrderID </td> <td> EmployeeID </td> <td> shipCity </td> <td> shipName </td> ");
out.print( " </tr> ");
for(;rs.next();){
out.print( " <tr> ");
out.print( " <td> "+rs.getInt(1)+ " </td> ");
out.print( " <td> "+rs.getString(2)+ " </td> ");
out.print( " <td> "+rs.getString(3)+ " </td> ");
out.print( " <td> "+rs.getString(4)+ " </td>