• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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?
 
Those are the largest trousers in the world! Especially when next to this ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic