If you are just trying to paginate data from the database that your are retrieving in your services you can do it write it yourself or if you are using spring-data-jpa they have some nice pagination stuff as well.
Depending on how you are displaying your data you might want to look at some of the nice jquery data table options there are a couple out there I have used. I really cant give you more without more detail as to what you are trying to do.
How to set list in PageListHolder and how to use it in jsp? I want JSP to have buttons like Next, previous, 1, 2, 3 like we see on most of the applications for going to next page, previous page or specific page.