Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

How to display variant number of record each page based on user's request ?

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On one shopping cart jsp page it displayes the records retrieved from database in table format. Now I find I have so many records (rows) to display, so I want to give user an option to choose how many rows they want to view on each page, e.g. they can choose to view 10 rows, or 20 rows, and if they choose 20 rows per page, I will provide buttons like "next 20", "previous 20".
conceptually, what jsp/servlet trick will be used ? any book or url discussing this ?
Thanks,
Yang
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is good conversation about this problem: http://www.javaranch.com/ubb/Forum7/HTML/006603.html
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try taking a peek at http://www.dotjonline.com/taglib/grid.jsp
reply
    Bookmark Topic Watch Topic
  • New Topic