Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Problem in pager tab lib

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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.

Regards,
 
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!