I am working on a Servlet-hibernate application. I have a list of 20 records. I have displayed the whole 20 records in a page, but, I need to implement pagination in such a way that 5 records are displayed in a page, & it has only next button to move to another 5 records. For this i am using JSP taglib for paging. But I am facing some problem.
Here is my code :
This is my jsp page. (Displays the whole 20 records)
Here is modified Test.jsp
I cannot even run this application, as the web.xml shows an error
Its a kind of online Test application, where 5Questions are displayed in a jsp page with a NEXT button. If user clicks Next button. another set of 5Questions is displayed. I have already retrieved 25 Questions in a List. I am using hibernate as the persistent tool.
Using DisplayTag would be the standard approach for doing pagination in JSPs IMO.