• Post Reply Bookmark Topic Watch Topic
  • New Topic

retrieving data over a number of pages  RSS feed

 
Sven Anderson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

could anyone talk me through how to implement a function that retrieves a set of data and then for example displays the output with a predefined number of entries for each page. Like this forum when you go through the topic list and clicking next page to see the next 30 entries.

thanks
Erik
 
graham king
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Erik,

I took the ValueListIterator design pattern, modified it a bit and was able to implement paging and sorting as well as the Next, Previous links...

Check it out, it's really useful.

http://java.sun.com/blueprints/corej2eepatterns/Patterns/ValueListHandler.html
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has been addressed many times. See the JSP FAQ.
 
Sven Anderson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys,

I just needed to find a starting point. I've seen articles about this before but was unable to find them this time.

Erik
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!