This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes 10 records/page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "10 records/page" Watch "10 records/page" New topic
Author

10 records/page

prathmesh madgulkar
Greenhorn

Joined: Aug 23, 2002
Posts: 2
how to show 10 records from database per page in jsp like 1 2 3 .. pages in this forum
Shawn Bayern
Author
Ranch Hand

Joined: May 06, 2002
Posts: 160
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.


Shawn Bayern<br />"JSTL in Action" <a href="http://www.jstlbook.com" target="_blank" rel="nofollow">http://www.jstlbook.com</a>
Joe Pardi
Ranch Hand

Joined: Oct 03, 2001
Posts: 47
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 10 records/page
 
Similar Threads
pagination for forEach of JSTL List
urgent urgent .....How do i do paging in JSP ?????
retrieving thousand of rows from DB2 database
Splitting records in pages
want to display results page by page