日期:2014-05-18  浏览次数:20644 次

JSTL异常
这是我写的一个分页的例子  在测试的过程中出了点问题 直接上代码
 

  
  <body>
     <div>
    <table>
    <tr>
    <th>省区编号</th><th>省名</th><th>状态</th><th>创建时间</th>
    </tr>
    <c:choose>
<c:when test="${empty pl.items}">
<tr align="center">
<td colspan="3">
没有用户
</td>
</tr>
</c:when>
<c:otherwise>
<c:forEach var="baseProvinces" items="${pl.items}">

<tr align="center">
<form action="register!updateUser" method="post">
<td>
<input type="text" name="baseProvinces.provincesId" value="${baseProvinces.provincesId}"></input>
</td>
<td>
<input type="text" name="baseProvinces.provincesName" value="${baseProvinces.provincesName}"></input>

</td>
<td>
<input type="text" name="baseProvinces.state" value="${baseProvinces.state}"></input>

</td>
<td>
<input type="text" name="baseProvinces.creationDate" value="${baseProvinces.creationDate}"></input>

</td>
<td>
<input type="submit" value="修改"/>
<a href="register!delUser?id=${baseProvinces.provincesId}">删除</a>

</td>
</form>
</tr>
</c:forEach>
</c:otherwise>
</c:choose>
    </table>
    <table width="400" align="center" border="1">
<tr align="center">
<td>
<pg:pager url="provinceInfo!queryAllProvince" maxIndexPages="5"
items="${pl.totalCount}" maxPageItems="3"
export="currentPage=pageNumber" scope="request">
<pg:first>
<a href="${pageUrl}">首页</a>
</pg:first>
<pg:prev>
<a href="${pageUrl}">上一页</a>
</pg:prev>

<pg:pages>
<c:choose>
<c:when test="${pageNumber eq currentPage}">
<font color="red">${pageNumber}</font>
</c:when>
<c:otherwise>
<a href="${pageUrl}">${pageNumber}</a>
</c:otherwise>
</c:choose>
</pg:pages>

<pg:next>
<a href="${pageUrl}">下一页</a>
</pg:next>

<pg:last>
<a href="${pageUrl}">尾页</a>
</pg:last>
</pg:pager>
</td>
</tr>
</table>
    <a href="register!findUserx">男女查询</a>
    </div>
  </body>
</html>



以下是异常信息:
org.apache.jasper.JasperException: An exception occurred processing JSP p