aspose file tools
The moose likes JSP and the fly likes 10 records/page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: 10 records/page
 
Similar Threads
retrieving thousand of rows from DB2 database
want to display results page by page
pagination for forEach of JSTL List
Splitting records in pages
urgent urgent .....How do i do paging in JSP ?????