1 2 3 4 5 |
<script type="text/javascript"> function goUrl(val) { document.location= "<%=request.getContextPath() %>/user/GetLimiteGoods?currentpageno="+val; } </script> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<div id="paging"> <c:if test="${currentpageno>=1}"> <a href="GetLimiteGoods?currentpageno=1">首页</a> <a href="GetLimiteGoods?currentpageno=${currentpageno-1}">上一页</a> </c:if> <c:if test="${currentpageno==1}"> <a href="GetLimiteGoods?currentpageno=${currentpageno+1}">下一页</a> <a href="GetLimiteGoods?currentpageno=${PageCount}">尾页</a> </c:if> <select onchange="goUrl(this.value)"> <option value ="选择跳转页面">选择跳转页面</option> <c:forEach begin="1" end="${PageCount}" var="i"> <option value="${i}" <c:if test="${page.currentPage == i}">selected </c:if> > ${i} </option> </c:forEach> </select> </div> |
转载请注明:天狐博客 » jsp+servlet+javabean分页跳转代码