Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple client side pagination in spring3 mvc is not working ?

 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to implement simple client side pagination no luck yet. my code for controller is



And jsp page code is


This code is displaying first 5 records well, but on clicking previous and next link data is not refreshing
(ie., next records are not displaying only those first 5 records are displaying)
Thanks in advance for any help
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the HTML that the browser sees. If you want pure client side pagination you are going to have to use javascript that can run on the browser to change the page.

If you want to handle this server side you can have a look at this.
http://stackoverflow.com/questions/2245035/how-to-implement-pagination-in-spring-mvc-3
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic