File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes retrieving data over a number of pages Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "retrieving data over a number of pages" Watch "retrieving data over a number of pages" New topic
Author

retrieving data over a number of pages

Sven Anderson
Ranch Hand

Joined: Apr 14, 2004
Posts: 58
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

Joined: Dec 30, 2004
Posts: 133
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


write, revise, re-write, revise, again...<br />write, revise, re-write, revise, again...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56157
    
  13

This has been addressed many times. See the JSP FAQ.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Sven Anderson
Ranch Hand

Joined: Apr 14, 2004
Posts: 58
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: retrieving data over a number of pages
 
Similar Threads
hyperlink data retrieve
Some questions on servlet connected to mysql
How does servlet know which url to open?
howto detect datacroller button press
Paging problem in jsp