saoj
Joined: 10/01/2008 08:20:15
Messages: 39
Offline
|
You may have an action that fetches a long list of objects from the database. So you will need to paginate this big collection. The PaginatorFilter will do this for you:
Action:
And in the ApplicationManager:
The default number of items per page is 20 and the default page parameter (http://www.mysite.com.br/UserAction.listAll.mtw?p=3) is "p". You can change that using a different PaginatorFilter constructor:
Now in your JSP you can just display your page with the pagination details:
|