Pagination does not work with display tag

I use the display tag to display my result set. This is how I implement it.

<display:table name="w" pagesize="10"  export="true" />

Here I installed pagesize =10, and when I run the application, the records are paginated 10, but when I click on the next page to view the next set of records, I get an empty result set.

For example, if there are 12 entries, 10 of them appear on the first page, and when I click next to view the last page, I get a blank page. Why is this happening??

w contains a list of all my entries:

request.setAttribute("w", resultrechparcritere);
+3
source share
1 answer

The table should be able to access the action when processing pagination,

requestURI ( , ) keepStatus uid:

<display:table requestURI = "myActionURL" 
               keepStatus = "true" 
                 pagesize = "10"  
                     name = "w" 
                      uid = "myTable" 
                   export = "true" />

/ , .

+2

All Articles