File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes how to do a Pagination like Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

how to do a Pagination like "Page:1 2 3 4 5 6 " in a jsp?

Giulietta Blumarine
Ranch Hand

Joined: Dec 03, 2004
Posts: 59
I have the following code in struts:
<logic:iterate id="PaginationDTO" name=list">
<tr><td><bean:write name="PaginationDTO" property="name"/></td></tr>
<tr>><td><bean:write name="PaginationDTO" property="surname"/></td></tr>

This code shows a table with as many record as the DTO in the collection.

I have to do the pagination.

How Can I do?
Has somebody an example?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62147

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: how to do a Pagination like "Page:1 2 3 4 5 6 " in a jsp?