<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>pageView.pageindex.startindex和pageView.pageindex.endindex为整形,pageView.currentpage为整形
把这个改成struts2标签版本的。
<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>pageView.pageindex.startindex和pageView.pageindex.endindex为整形,pageView.currentpage为整形
把这个改成struts2标签版本的。
<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>