I am trying to create pagination using jsp pager tag lib in my application with hibernate and struts.
It is working fine when i am retrieving the whole data from the database at once.
But when i am trying to make it query based pagination i am getting problems.
The very first problem is with the following tag:
Here in case of items attribute if i am using the tag
where employees is a list
and in side getAllEmployees() i am using the hibernate query like
it is working fine.
But if i get the rowcount from the employee table and then use that count in place of sizes then the first 10 records are displaying only but the pagination tags are not. Pagination tags are visible by
tag but they are not displaying.
I am not able to understand this thing.
If any one has work on this please help me.
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad: