<c:forEach begin="${pageView.pageindex.startindex}"
end="${pageView.pageindex.endindex}" var="page">
<c:if test="${pageView.currentpage==page}">
<span class="current">${page}</span>
</c:if>
<c:if test="${pageView.currentpage!=page}">
<a href="javascript:topage('${page}')">${page}</a>
</c:if>
</c:forEach>
<s:bean name="org.apache.struts2.util.Counter" id ="count" >--实现fors循环
<s:param name="first" value="pageView.pageindex.startindex" />--
<s:param name="last" value="pageView.pageindex.endindex" /> --
<s:iterator status="st">
<s:if test="pageView.currentpage== #st.index+1"><span class="current"><s:property value="#st.index+1"/></span></s:if>
<s:if test="pageView.currentpage!= #st.index+1"><a href="javascript:topage('<s:property value="#st.index+1"/>')"><s:property value="#st.index+1"/></a></s:if>
</s:iterator>
</s:bean>