I’m writing a report view of an audit trail, and I need to display this in a .jsp. What’s the ‘best’ way to get the data from the database to the screen?
We’re using Spring for dependency injection, Data Access Objects, and Hibernate. I can use hibernate or straight jdbc for this report.
If I load all the records into memory I run out of memory.
Any ideas that don’t involve running the query in the jsp?
It seems like this is a natural place to use pagination of your Hibernate results — run the query at the Servlet level, and paginate results in a way similar to how this person describes:
http://blog.hibernate.org/Bloggers/Everyone/Year/2004/Month/08/Day/14#pagination
This is the easiest method of implementing Hibernate pagination I’ve seen…