I want to display a list of all the users in my site but I only want to display 10 people per age. I don't know how exactly to do this. I know how to do it by just displaying all the users in one page but that's not very good is it?
If I do it with the code I have now, it will only get the first ten users over and over again. I want to be able to get all the users for a one time query, store it globally and then move through the list retrieving the next 10 and so on for display.
I am developing on appengine using Java and the Spring Framework some of the solutions I have been thinking about,
- Store in the session and go through the list (very bad I guess)
- hand it to the JSP, specifically to one of the scopes, page, request etc. But I think request will not work.
- Look for a Spring controller that can handle this.