• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Page by Page Iterator

 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
Fintan
 
reply
    Bookmark Topic Watch Topic
  • New Topic