• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Scrollable sections in JSP

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to find a best solution for displaying results in sections on a JSP with <Previous> and <Next> functionality for each section to navigate within section.
For ex: User enters a search criteria to get records for specified years . On results jsp page, results should be displayed in seperate section for each specified year. Each section should display top 5 records for the year and each section should have <Previous> and <Next> buttons. When any of these buttons pressed , previous/next set of 5 records should be displayed for that year.
I think Navigating at query level in servlet may be too expensive. Holding Vector of unique keys of records for each section may also be expensive , as there can be upto 20-30 sections.
Any suggessions are welcome.
-Thanks in advance
-SSH
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unless those are REALLY long keys, I wouldn't feel too guilty about keeping only 20 or 30 of them in a vector! Unless, maybe there's a thousand users all doing this at once.
 
Seema Hanji
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You mean one seperate Vector for each section ?
So, there can be 20-30 Vectors ?
 
Seriously? That's what you're going with? I prefer this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic