• Post Reply Bookmark Topic Watch Topic
  • New Topic

Page by Page Iterator  RSS feed

Fintan Conway
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have come across situations where we are returning thousands of records to a jsp page. This is taking too long to assemble the recordset. We want to return e.g. 50 records to the user. When they click on a button we would return the next 50 records and so on. I was extremely interested when I came across the page-by-page iterator pattern.
I delved into the links on Sun's web site, to find out how I could use this pattern to return the correct number of records to the JSP page (ordinary JSP - no EJB). As I delved further and further into the documentation I came to a full stop at the ListChunk object. I could not find anywhere the implementation which returns a ListChunk of records.
It SEEMS like this pattern is missing the very thing that I was looking for - a way to get a block of records into the ListChunk object.
Is this the way that the pattern is supposed to be? Is it really only window dressing on top of my actual requirements? Is there something that I have missed?
Any help would be appreciated,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!