Link to home
Start Free TrialLog in
Avatar of annapolistech
annapolistechFlag for United States of America

asked on

Pagination in jsp using tag library

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
ASKER CERTIFIED SOLUTION
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of annapolistech

ASKER

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.
Thanks