Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
    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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

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:
  • 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". The usage of jsp/servlet is flexible with me.
conceptually, what jsp/servlet trick will be used ? any book or url discussing this ?
Posts: 16940
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
This question has already been answered in the JSP forum:
For your future reference, post questions in the most appropriate forum and please do not post the same question to multiple forums.
There is also a search facility on this site and we strongly urge new visitors to use it before posting a question in order to avoid duplication.
Last but not least, please take a moment to scan the FAQ for more useful information that will help make your visit here more productive and pleasant.
Thank you for your cooperation and welcome to JavaRanch!
Can't .... do .... plaid .... So I did this tiny ad instead:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic