用到分页标签
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %> <pg:pager scope="request" maxIndexPages="5" index="center" maxPageItems="<%=pageSize%>" url="<%= request.getRequestURI() %>" items="<%=dataTotal%>" export="currentPageNumber=pageNumber">
<pg:first><a href="${pageUrl}&sampleBaseId=<%=sampleBaseId %>&sId=<%=sId%>&tirId=<%=tirId%>" onclick="Go(1);" class="contentLabel">首页</a></pg:first>
<pg:prev><a href="${pageUrl}&sampleBaseId=<%=sampleBaseId %>&sId=<%=sId%>&tirId=<%=tirId%>" onclick="Go(1);" class="contentLabel">前页</a></pg:prev>
<pg:page>
</pg:page>
<pg:pages>
<c:choose>
<c:when test="${pageNumber eq currentPageNumber }">
<font color="red" class="contentLabel">${pageNumber }</font>
</c:when>
<c:otherwise>
<a href="${pageUrl}&sampleBaseId=<%=sampleBaseId %>&sId=<%=sId%>&tirId=<%=tirId%>" onclick="Go(1);" class="contentLabel">${pageNumber}</a>
</c:otherwise>
</c:choose>
</pg:pages>
<pg:next><a href="${pageUrl}&sampleBaseId=<%=sampleBaseId %>&sId=<%=sId%>&tirId=<%=tirId%>" onclick="Go(1);" class="contentLabel">下页</a></pg:next>
<pg:last><a href="${pageUrl}&sampleBaseId=<%=sampleBaseId %>&sId=<%=sId%>&tirId=<%=tirId%>" onclick="Go(1);" class="contentLabel">尾页</a></pg:last>
</pg:pager> 想先执行 onclick中的处理,后跳页面,原理上是这样,但是执行结果不一定,有时候执行了onclick,有的时候没有执行。不知道什么原因
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %> <pg:pager scope="request" maxIndexPages="5" index="center" maxPageItems="<%=pageSize%>" url="<%= request.getRequestURI() %>" items="<%=dataTotal%>" export="currentPageNumber=pageNumber">
<pg:first><a href="${pageUrl}&sampleBaseId=<%=sampleBaseId %>&sId=<%=sId%>&tirId=<%=tirId%>" onclick="Go(1);" class="contentLabel">首页</a></pg:first>
<pg:prev><a href="${pageUrl}&sampleBaseId=<%=sampleBaseId %>&sId=<%=sId%>&tirId=<%=tirId%>" onclick="Go(1);" class="contentLabel">前页</a></pg:prev>
<pg:page>
</pg:page>
<pg:pages>
<c:choose>
<c:when test="${pageNumber eq currentPageNumber }">
<font color="red" class="contentLabel">${pageNumber }</font>
</c:when>
<c:otherwise>
<a href="${pageUrl}&sampleBaseId=<%=sampleBaseId %>&sId=<%=sId%>&tirId=<%=tirId%>" onclick="Go(1);" class="contentLabel">${pageNumber}</a>
</c:otherwise>
</c:choose>
</pg:pages>
<pg:next><a href="${pageUrl}&sampleBaseId=<%=sampleBaseId %>&sId=<%=sId%>&tirId=<%=tirId%>" onclick="Go(1);" class="contentLabel">下页</a></pg:next>
<pg:last><a href="${pageUrl}&sampleBaseId=<%=sampleBaseId %>&sId=<%=sId%>&tirId=<%=tirId%>" onclick="Go(1);" class="contentLabel">尾页</a></pg:last>
</pg:pager> 想先执行 onclick中的处理,后跳页面,原理上是这样,但是执行结果不一定,有时候执行了onclick,有的时候没有执行。不知道什么原因
解决方案 »
- click方法与fireEvent('onclick')有什么区别
- 在WEB上绘图的技术
- 问个关于js捕获ActiveX事件的问题
- 鼠标停留提示!
- Javascript中如何得到某个form被post之后的返回值?
- 小女子恳求好心人帮忙~显示动态下拉表单。。
- 这是什么意思 ?var oWin=new Array;oWin.zIndex=10;oWin.dragobj=-1; oWin.resizeobj=-1; oWin.zIndex=100
- 如何实现这个页面中图片和图片说明滚动显示的效果???
- 为什么在htc中模态窗口的返回值始终为undefined
- <table><tr><td>2003-12-11</td></tr></table>中的日期转到Excel后变成了数字37966.什么原因,怎么解决呢.用的是owc转出
- 关于Fancybox插件 的iframe打开新窗口问题
- EXT gridPanel 表格怎么实现鼠标拖动选择啊?
function OnClick(){window.location.href='http://topic.csdn.net/u/20110924/13/313fae9c-a23c-4663-a1d5-2e62e8bc8ae9.html'}