Pagination in jsp using tag library

Posted on 2007-07-24
Last Modified: 2013-11-24
Hi Experts,

I want to implement pagination in jsp using tag library. Can you please provide me some source code to do the same.

Thanks in advance
Question by:annapolistech
    LVL 35

    Accepted Solution


    Author Comment

    Hi Tim,
    I have tried using pager tag, but don't know why it is not working.
    I'll list down my present scenario:

    Iam able to get  the data from the database in a servlet and set the contents to their corresponding setter method in a supporting bean and then put the entire bean in a arraylist, finally using jstl core tags in jsp I am iterating the arraylist and printing 10 rows (which I have set default).
    I am displaying the records in sets of 10, i.e., first [0-9]. Then when I click on the next set of 10 results, [10-19], I get a blank page.

    Hope the above explanation does not confuse you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Suggested Solutions

    Title # Comments Views Activity
    string initialization in java 11 94
    lucky13 challenge 11 94
    fetching the full url inside controller 2 31
    copyEvens challenge 6 46
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    The viewer will learn how to implement Singleton Design Pattern in Java.
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now