2013-07-11 54 views
0

我用顯示:表在我的JSP頁面來顯示從Struts2的Action類Struts2的自定義顯示:標籤

<display:table name="Clients" class="table table-condensed table-hover" requestURI="" id="ClientList" export="true" pagesize="5"> 
     <display:column property="clientKey" sortable="true" href="editMClient" media="html" 
      paramId="clientKey" paramProperty="clientKey" titleKey="mClient.clientKey"/> 
     <display:column property="clientKey" media="csv excel xml pdf" titleKey="mClient.clientKey"/> 
     <display:column property="MClientcol" sortable="true" titleKey="mClient.MClientcol"/> 
     <display:column property="clientName" sortable="true" titleKey="mClient.clientName"/> 

    <%--Many columns --%> 

</display:table> 

的數據和我歌廳輸出這樣的。

enter image description here

我想改變風格。我的意思是,我不想顯示頁碼,我只想顯示上一個和下一個,也與圖像一樣(如在GMail中)。

在頁面中,我將頁面大小設爲5.我想顯示一個選擇框,顯示10,20,30個選項,以便當用戶選擇一個數字時,頁面上顯示的行數。 (像JQGrid,但我不想使用display:table)。

我也不想顯示XML的導出鏈接。

我該如何實現這些目標?

回答