This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pagination

 
aakash bhatt
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application from front end there can be many complex queries fired. And the result i want to show in my JSP in pagination.
I do not want to store the value in session of collection as many user simulatenously can acces it.
So which is the best alternative. I had heard above cached rowset but do not have a definite idea is there any other way?
Thanks aakash
 
Anselm Paulinus
Ranch Hand
Posts: 390
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider using hidden fields to pass data from one page to the other for display. This also has its own disadvantage though
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
aakash,
This very subject has been discussed at great length in these forums. If you search this forum (JSP) and the Servlets forum for terms like 'paging' and 'pagination' you should find some useful info.
hth,
bear
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic