This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

displaying fixed number of records on a page

 
Rahul Ghai
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JSP ,after retrieving records from the database in a resultset object, how can i display only five records at a time in a page and after clicking on the next button, the other five records should be displayed and so on.....using javascript.
 
prakash muthu
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a couple of idea for your problem..Check it out and let me know.
1)Put the values in a vector and you can show first 5 in the first time, then if the user click on Next button, you can show a next 5 records.
Here the problem is all records will be in client side
2) You can use a separate server call for every click on next button.
Based on your situation you can use any one
-Prak
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic