Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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: 48
  • 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