File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

displaying fixed number of records on a page

 
Rahul Ghai
Greenhorn
Posts: 21
  • 0
  • 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
  • 0
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic