GeeCON Prague 2014*
The moose likes Programming Diversions and the fly likes Pgination in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Pgination in java" Watch "Pgination in java" New topic
Author

Pgination in java

Vasu
Greenhorn

Joined: Oct 09, 2006
Posts: 9
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.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
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.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
Sun has a very good design pattern for it. Just google around suns design pattern for iterator pattern ( forgot the exact name )


Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Check the JSP FAQ section.


My blood is tested +ve for Java.
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 423

Just the other day someone in the Sun forum posted an example snippet: http://forum.java.sun.com/thread.jspa?threadID=783312&tstart=50
bis ani
Ranch Hand

Joined: Mar 09, 2005
Posts: 36
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
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
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?
 
wood burning stoves
 
subject: Pgination in java