日期:2014-05-18 浏览次数:20694 次
<s:set var = "pagenum" value = "#articles.length%5==0 ? #articles.length/5 : #articles.length/5+1" />
<s:property value = "#pagenum" />
</li>
<s:iterator value = "#pagenum" id = "currentpage" status = "xyz">
<li class="active_page">
<a href="javascript:void(0);">1</a>
</li>
<li>
<a href="javascript:void(0);">2</a>
</li>
<li>
<a href="javascript:void(0);">3</a>
</li>
<li>
<a href="javascript:void(0);">4</a>
</li>
<li>
<a href="javascript:void(0);">5</a>
</li>
</s:iterator>