File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes pagination with struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "pagination with struts 2" Watch "pagination with struts 2" New topic

pagination with struts 2

Ram naveen

Joined: Sep 10, 2008
Posts: 7
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.
John frankile

Joined: Sep 17, 2008
Posts: 2

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

Joined: Oct 17, 2008
Posts: 1
Use Displaytag its highgly customizable and rightnow i think its the best option.

Or maybe
its harder, but works!
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 689


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="" 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 headerClass="Table-Head" value="Euro25.00000" title="Account" autolink="true" />
<display:column headerClass="Table-Head" property="email" autolink="true"
titleKey="email" />

Nishan Patel.

Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
subject: pagination with struts 2
It's not a secret anymore!