<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right">当前页面:[${requestScope.pageNum}/${requestScope.pageCount}]
</td>
<td align="right">当前页数:[${requestScope.pageNum }/${requestScope.pageCount }]
<c:if test="${requestScope.pageNum >1}"><!-- 判断当前页面是否大于1 -->
<a href="book.jsp?parameter=search&pageNum=1&search=${requestScope.search} ">第一页</a>
<a href="book.jsp?parameter=search&pageNum=${requestScope.pageNum - 1 }&search=${requestScope.search} ">上一页</a>
</c:if>
<c:if test="${requestScope.pageNum == 1}"><!-- 判断当前页面是否等于1 -->
第一页> 上一页
</c:if>
<c:if test="${requestScope.pageNum <requestScope.pageCount}"><!-- 判断当前页面是否小于总的页数 -->
<a href="book.jsp?parameter=search&pageNum=${requestScope.pageNum + 1 }&search=${requestScope.search }">下一页</a>
<a href="book.jsp?parameter=search&pageNum=${requestScope.pageCount }&search=${requestScope.search }">最后一页</a>
</c:if>
<c:if test="${requestScope.pageNum == requestScope.pageCount}"><!-- 判断当前页面是否等于总的页数 -->
下一页 最后一页
</c:if>
</td>
</tr>
</table>
<tr>
<td align="right">当前页面:[${requestScope.pageNum}/${requestScope.pageCount}]
</td>
<td align="right">当前页数:[${requestScope.pageNum }/${requestScope.pageCount }]
<c:if test="${requestScope.pageNum >1}"><!-- 判断当前页面是否大于1 -->
<a href="book.jsp?parameter=search&pageNum=1&search=${requestScope.search} ">第一页</a>
<a href="book.jsp?parameter=search&pageNum=${requestScope.pageNum - 1 }&search=${requestScope.search} ">上一页</a>
</c:if>
<c:if test="${requestScope.pageNum == 1}"><!-- 判断当前页面是否等于1 -->
第一页> 上一页
</c:if>
<c:if test="${requestScope.pageNum <requestScope.pageCount}"><!-- 判断当前页面是否小于总的页数 -->
<a href="book.jsp?parameter=search&pageNum=${requestScope.pageNum + 1 }&search=${requestScope.search }">下一页</a>
<a href="book.jsp?parameter=search&pageNum=${requestScope.pageCount }&search=${requestScope.search }">最后一页</a>
</c:if>
<c:if test="${requestScope.pageNum == requestScope.pageCount}"><!-- 判断当前页面是否等于总的页数 -->
下一页 最后一页
</c:if>
</td>
</tr>
</table>