Most of the work of pagination would be done in the database and the page controller. All the
JSP would be reponsible for is to display the data sent to it.
In my case I usually just send the data to the JSP as an Object[][]. It's easy to build a <table> from this using simple JSTL iteration.