how to break 500 rows to 50 rows per pages in jsp

Discussions

Web tier: servlets, JSP, Web frameworks: how to break 500 rows to 50 rows per pages in jsp

  1. how to break 500 rows to 50 rows per pages in jsp (4 messages)

    I retreived more than 500 rows from table on JSP page. How do I break 500 rows to multiple pages (50 rows per page). What API do I should use? Please give me some comments.

    Thanks

  2. Use the pattern that is in Sun's Java-page:
    http://java.sun.com/blueprints/patterns/j2ee_patterns/page_by_page_iterator/index.html
  3. A new tag library (still alpha, though) just came out and it allows to do that very easily - there's a 'tableView' tag to which you just pass the recordset and it will do everything automatically. It's called TICL, go to http://www.kobrix.com.

  4. Try out the grid tag at

    http://www.dotjonline.com/taglib/grid.jsp

    It does precisely what you want ...
  5. how to break 500 rows to 50 rows per pages in jsp[ Go to top ]

    This was a very easy class to create, easier than I thought it would be. I created a PaginatedList class that maintains a list of any object and returns you sublists of it.