Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pagination with struts 2

 
Ram naveen
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
i have to do pagination with struts 2 .but i cannot find any mock examples for this.could anyone can suggest me how to do pagination in struts 2. or do any one have any materials for this.
regards
ram
 
John frankile
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.servletsuite.com/tips/grid1.htm

In my Struts based application we implemented pagination using this tag library .

It may be also useful to you, Try it once ...
[ September 18, 2008: Message edited by: John frankile ]
 
Lei��lfr Shieldsbane
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Use Displaytag http://displaytag.sourceforge.net/ its highgly customizable and rightnow i think its the best option.

Or maybe
http://struts.apache.org/2.0.11/docs/subset.html
its harder, but works!
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...

You can easily integrate Display tag for pagination in struts 2.

you have get example from it's site and integrate it.

you have to add tag lib.

<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>

and add

<display:table name="list" pagesize="10" cellpadding="0" cellspacing="0"
requestURI="" id="row" class="">
<display:column title="#" headerClass="Table-Head">
<c ut value="${row_rowNum}" />
</display:column>
<display:column headerClass="Table-Head" value="Euro25.00000" title="Account" autolink="true" />
<display:column headerClass="Table-Head" property="email" autolink="true"
titleKey="email" />
</display:table>



Thanks,
Nishan Patel.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic