Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Pagination Logic..Session ..?  RSS feed

 
umar hathab
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..
I want to implement the pagination logic in my pages.One way is to put the total records(Collection) in session and displaying the required records depending on some counters..
Is this feasible..? Putting objects into session will give some performance issues?
If so..can any one tell the alternative ,best way for the pagination..?
BTW..I am using JSP for display..
A.Umarhathab
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many records are we talking about? It sounds like a bad idea to me. Why not just save the last row number displayed and work from there.
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at this article published by theserverside.com. It's not really about performance, but good design ( which leads to good performance ).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!