GeeCON Prague 2014*
The moose likes Servlets and the fly likes Help in implementing Paging facility like Google in servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Help in implementing Paging facility like Google in servlets" Watch "Help in implementing Paging facility like Google in servlets" New topic
Author

Help in implementing Paging facility like Google in servlets

faisal ishaque
Greenhorn

Joined: Feb 21, 2003
Posts: 14
My question is related to the paging mechenism like Google in which records are shown as 1,2,3,...10, and also if i get more then 100 records, what is the best way to handle this situation?
Every time i use jdbc call when user clicks on hyperlink 1 or 2 and so on or there is any better approach for doing this?
regrads
Faisal Ishaque
Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
search for pagination in servles and jsp forums and you will find lots of information, its always a good idea to search before posting a question.


The secret to creativity is knowing how to hide your sources.
Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
"Value List Handler" pattern:

http://java.sun.com/blueprints/corej2eepatterns/Patterns/ValueListHandler.html

"DataListHandler" pattern
http://www.theserverside.com/resources/article.jsp?l=DataListHandler
http://www.theserverside.com/home/thread.jsp?thread_id=13939

article: ResultSet pagination using DB2, JDBC, and JSPs
http://www7b.boulder.ibm.com/dmdd/library/techarticle/0307balani/0307balani.html

DisplayTag (an open source JSP tag library)
The DisplayTag library provides tags for displaying large
data sets.

The tag library supports: column display, sorting, paging,
cropping, grouping, exporting, and decoration.
http://displaytag.sourceforge.net/
Live demo @ http://www.displaytag.org/index.jsp
Mark Gowdy
Greenhorn

Joined: May 14, 2001
Posts: 28
You may wish to check out http://jsptags.com - they even have a google like tag feature.
[ December 19, 2003: Message edited by: Mark Gowdy ]
 
GeeCON Prague 2014
 
subject: Help in implementing Paging facility like Google in servlets