This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

10 records/page

 
prathmesh madgulkar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to show 10 records from database per page in jsp like 1 2 3 .. pages in this forum
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by prathmesh madgulkar:
how to show 10 records from database per page in jsp like 1 2 3 .. pages in this forum

Using JSTL, you can use the 'begin' and 'end' attributes of the <c:forEach> tag to scroll among the results from a database query. I have an example that demonstrates this technique in detail in chapter 5 of JSTL in Action.
 
Joe Pardi
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, if you require a few more features like auto sorting, check out the grid tag at
http://www.dotjonline.com/taglib/grid.jsp
Good luck!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic