bankPage.java
//转到指定的页,主要调用pager.gotopage();
Pager pager = (Pager) httpServletRequest.getSession().getAttribute(BANK_LIST_PAGER_KEY);
pager.gotoPage(requestPage);
List curpage = pager.getCurrentPage();
httpServletRequest.setAttribute(Const.PAGE_KEY,curpage);
return actionMapping.findForward(Const.SUCCESS);
info.jsp
<td colspan="3" bgcolor="#FFFFFF" class=tr_02><html:text styleId="fddbr" styleClass="input02" name="dissupplierForm" property="silegrep"/></td>
list.jsp
</tr>
<%
int i=0;
Pager pager = (Pager)session.getAttribute("rz.supplier.list");
%>
<logic:present name="page"> <logic:iterate id="supplierinf" name="page" indexId="index" type="cn.rzdd.cbs.persistence.po.Supplierinf" > <logic:present name="supplierinf">
<%
int curIndex = i + 1 + (pager.getCurrentPageIndex()-1) * pager.getCountPerPage() ;
i++;
request.setAttribute("indexd",new Integer(i));
if(curIndex%2==0){
%>
<tr bgcolor="#EAEAEA">
<%}else{%>
<tr bgcolor="#F0F9FF">
<%}%>
<td><div align="center"> <bean:write name="indexd" /></div></td>
<td height="25" ><div align="center"> <span class="button"><bean:write name="supplierinf" property="sisupname" /> </span></div></td>
<td><div align="center"><bean:write name="supplierinf" property="sirepresent" /> </div></td>
<td height="25"><div align="center"> <bean:write name="supplierinf" property="silegrep" /> </div></td>
<td ><div align="center"><html:link page="/mm/supplierInfo.do" paramId="sid" paramName="supplierinf" paramProperty="siid">修改</html:link>     <html:link page="/mm/supplierDelete.do" paramId="sid" paramName="supplierinf" paramProperty="siid">删除</html:link></div></td>
</tr>