Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pgination in java

 
Vasu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • 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.
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • 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 )
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the JSP FAQ section.
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • 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
 
bis ani
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • 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
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic