日期:2014-05-17  浏览次数:20929 次

s:iterator问题
<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>