File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help in implementing Paging facility like Google in servlets

 
faisal ishaque
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 285
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sean Sullivan
Ranch Hand
Posts: 427
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic