• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Pgination in java

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Please tell me how to implement the Pagination in java.Tell me the sites that are helpful to the Pagination.
Thanking You,
Vasu.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If this is for a web site, the topic has been around a few times in the Servlet forum. Try a search on "pagination" up there.
 
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sun has a very good design pattern for it. Just google around suns design pattern for iterator pattern ( forgot the exact name )
 
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check the JSP FAQ section.
 
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just the other day someone in the Sun forum posted an example snippet: http://forum.java.sun.com/thread.jspa?threadID=783312&tstart=50
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

If you are interested in using third party components, try Extreme Components.
http://extremecomponents.org/extremesite/index.jsp

It gives more than just pagination and it is easily configurable.

regards,
Bis
 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What I have been concerned about the "pagination" is the case the "Search" returns a huge volume of the result set.

Consequently, we are unable to cache the result. We have to display the first set of the records (say, 10 records) found. If the user opts to click on the numberical link "3", we make anoter trip to the database to retrieve records 21 to 30 to display.

The above practice works in the "session" scope. I have had problems with making it work in the "request" scope. If the "Search" feature could be used by a large number of web site visitors at the same time, the application takes performance hit when the "session" scope is used.

I am stuck in the "session" scope for another reason - I often have to provide checkboxes for the records found from the database table. Users may select a few records from the first page, a few records from; say, the 5th page, and then click the "SUBMIT" button. I rely on the "sesson" scope to memorize the user selected records from all those web pages that have been avigated through.

Is there a way to use the "request" scope in paging?
 
No holds barred. And no bars holed. Except this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic