File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "pagination with struts 2" Watch "pagination with struts 2" New topic
Author

pagination with struts 2

Ram naveen
Greenhorn

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.
regards
ram
John frankile
Greenhorn

Joined: Sep 17, 2008
Posts: 2
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

Joined: Oct 17, 2008
Posts: 1
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

Joined: Sep 07, 2008
Posts: 684

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.


Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
 
Don't get me started about those stupid light bulbs.
 
subject: pagination with struts 2
 
Similar Threads
Pagination
PAGINATION
Pagination
Pagination
Pagination