jsp+access 实现数据分页显示出现问题,请各位帮忙看一下,谢谢

程序代码如下:
<%@page contentType="text/html;charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<title> 新闻信息分页显示 </title>
<link href="style.css type=text/css rel=stylesheet">
</head>
<body>
<div align="center">
<hr> <br>
<h4>新闻信息明细表每页显示8条数据</h4>
</div>
<p align="center">新闻信息</p>
<table width="640" height="67" border="1" align="center" bordercolor="#7188e0">
<tr bgcolor="d1d1ff">
<td width="140" height="28">新闻标题</td>
<th width="260">新闻内容</th>
<th width="100">发布时间</th>
</tr>
<%
//载入驱动程序类别
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
//简历数据库连接,jspdata为ODBC数据源名称
Connection con = DriverManager.getConnection("jdbc:odbc:jspdata");
//简历statement对象
Statement stmt = con.createStatement();
//建立RESULTSET
ResultSet rs = stmt.executeQuery("select 新闻标题,新闻内容,发布时间 from 新闻");
int intPageSize;
int intRowCount;
int intPageCount;
int intPage;
String strPage;
int i;
int PageSize=8;
strPage=request.getParameter("page");
if(strPage==null){
intPage=1;
} else{
intPage=java.lang.Integer.parseInt(strPage);
}
if(intPage<1){
intPage=1;
}
rs.last();
intRowCount = rs.getRow();
intPageCount = (intRowCount+intPageSize-1) / intPageSize;
if (intPage > intPageCount) intPage = intPageCount;
if(intPageCount >0){
rs.absolute((intPage-1) * intPageSize+1);
}
i=0;
while(i< intPageSize && !rs.isAfterLast()){ %>
<tr bgcolor="#f8f8f8" class=time>
<td height="31"><%=rs.getString("新闻标题") %></td>
<td><p><%=rs.getString("新闻内容") %></p></td>
<td><%=rs.getString("发布时间") %></td>
</tr>
<% rs.next();
i++;
}

rs.close();
stmt.close();
con.close();
%>
</table><p align="center">
共<%=intRowCount%>个记录,分<%=intPageCount%>页显示,当前页是:第<%=int-PageCount%>页
<%
for(int j=1;j<=intPageCount;j++)
{
our.print("  <a href='jsppage.jsp?page="+j+"'>"+j+"</a>");
}
/%>
</body>
</html>

出现错误为:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 74 in the jsp file: /newspage.jsp
Generated servlet error:
D:\Tomcat\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\newspage_jsp.java:130: 需要 ".class"
out.print(int-PageCount);
^

An error occurred at line: 75 in the jsp file: /newspage.jsp
Generated servlet error:
D:\Tomcat\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\newspage_jsp.java:139: 非法的表达式开始
/
^
2 错误
大家帮忙看一下,感谢!

你到
D:\Tomcat\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\newspage_jsp.java:130
的130行;

D:\Tomcat\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\newspage_jsp.java
的139行;

看看是什么问题,然后再在相应的位置修改,以后有什么问题直接到
D:\Tomcat\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\这目录找相应的java文件看就行了,报错的时候都会告诉你行号的,如本些报错:
...newspage_jsp.java:130: 需要 ".class"

就是说你的newspage.jsp有错,编译成sevlet后为文件newspage_jsp.java,错误在130行,

你也可以借鉴一下此例:
http://zhidao.baidu.com/question/59792505.html
温馨提示:答案为网友推荐,仅供参考