Spring Data Commons project provides web support that, among other things, includes primitives for implementing pagination. These are IMO generally useful even without using any of the Spring Data projects for specific data access technology and could easily be a part of the core web framework.