-->报${status.count}错误。
这个应该是你没有把jstl环境配好吧,你如果用tomcat,要支持jsp2.0,就要在web.xml中改<web-app>为<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">你也可以不用${status.count},直接<%i++%>也可以的

解决方案 »

  1.   

    ^_^,终于找到这个帖了,谢谢jbas。
      

  2.   

    请问高手:点击“下一页”,跳转到http://localhost:8080/ebooks/next
    是怎么回事
    http://localhost:8080/ebooks/是网站根目录
      

  3.   

    请问高手:点击“下一页”,跳转到http://localhost:8080/ebooks/next
    是怎么回事
    http://localhost:8080/ebooks/是网站根目录
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@page pageEncoding="GB2312"%><%@page contentType="text/html; charset=GB2312" language="java" errorPage="../../error.jsp" autoFlush="true" %>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%><%@ taglib uri="http://jpager.com/taglibs/page" prefix="page"%><%@include file="../../ds.jsp"%>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    <LINK href="../../hellking.css" type=text/css rel=stylesheet>
    <body>  <sql:query var="query" dataSource="${bookdev}" sql="${param.sql}">
      </sql:query>  <table align="center" bgcolor="#008800" border="0" cellspacing="2" cellpadding="5">
        <tr bgcolor="#cccccc">
          <td>序号</td>
          <td><b>题名</b></td>
          <td><b>主要责任者</b></td>
         </tr>    <page:pager dz="5">    <c:forEach var="row" items="${query.rows}" varStatus="status">      <page:item nr="${status.count}">      <tr bgcolor="#FFFF88">
          <td nowrap>${status.count}</td>
            <td>${row.title}</td>
            <td>${row.creator}</td>
          </tr>
         </page:item>
        </c:forEach>    </page:pager>
        <tr>
               <td colspan="6" align="center">
           <page:bt/>
               </td>
            </tr>
      </table>
    </body>
    </html>
      

  4.   

    http://49.playicq.com/1/24261.html 有更新的程序hujinjun(CrazyJsp):现在如果还有问题,请通过查看网页源代码的形式把生成的html源码贴上来看看,请下载新版本的jpager.
      

  5.   

    http://49.playicq.com/1/24261.html 就有源码的。
      

  6.   

    他这里pageSize记录在sessin里,会不会不大好啊?
      

  7.   

    我现在能从数据库得到记录总数,和没有一条记录。
    到了页面上,我是通过
    for(int i = 0; i < list.size();i++)
    {
       Map map = (Map)list.get(i);
    }
    来得到每一条记录,
    请问怎么用上这个分页得标签?
      

  8.   

    我现在能从数据库得到记录总数(通过list得到)和每一条记录(通过map得到)。
    到了页面上,我是通过
    for(int i = 0; i < list.size();i++)
    {
       Map map = (Map)list.get(i);
    }
    来得到每一条记录,
    请问怎么用上这个分页得标签?