pageNavigater.jsp
<%
String pagerName = request.getParameter("pagerName");
String action = request.getParameter("action");
%>
<logic:present name="<%=pagerName%>">
<logic:greaterEqual name="<%=pagerName%>" property="totalPages" value="0">
转到 <input type="text" class="goto" name="page" value='<bean:write name="<%=pagerName%>" property="currentPageIndex" />' onChange="gotoPage('<%=action%>',this.value)"/>
</logic:greaterEqual>
<logic:equal name="<%=pagerName%>" property="hasPrior" value="true" >
<a href='javascript:priorPage("<%=action%>",<bean:write name="<%=pagerName%>" property="currentPageIndex" />)'><<</a>
</logic:equal>
<logic:equal name="<%=pagerName%>" property="hasPrior" value="false" >
<<
</logic:equal>
<bean:write name="<%=pagerName%>" property="currentPageIndex"/>/<bean:write name="<%=pagerName%>" property="totalPages"/>
<logic:equal name="<%=pagerName%>" property="hasNext" value="true" >
<a href='javascript:nextPage("<%=action%>",<bean:write name="<%=pagerName%>" property="currentPageIndex" />)'>>></a>
</logic:equal>
<logic:equal name="<%=pagerName%>" property="hasNext" value="false" >
>>
</logic:equal>
</logic:present>