• Post Reply Bookmark Topic Watch Topic
  • New Topic

Pagination in jsp

 
vivek dhiman
Ranch Hand
Posts: 153
Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am trying to implement code to apply pagination in jsp. But it doesn't work. This code display all result on one page and when i click on next page it shows previous result again.I want to display 10 rows on each page. Total rows in table is 50. Below is the code.


As i taken this code from internet, so not sure about below values.


thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35719
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That code is hard to read. There's a reason we have been discouraged from putting Java code in JSPs for over a decade. Maybe you want to ask in a comment on the page you got the code from? Or use a more modern tag for paging?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!