View Full Version : Pagination Spring+PortletJSR168+Hibernate
rajyalakshmi.suman
Sep 12th, 2007, 07:33 AM
Hi
I have used html <table> in my code:JSP File Attached for perusal
Could anyone suggest pagination using Spring-PortletMVC
Thank u
Lakshmi
Marten Deinum
Sep 12th, 2007, 07:44 AM
Pagination with Spring and Hibernate has been discussed numerous times before on the forums. Use the search and they should bubble up.
johnalewis
Sep 12th, 2007, 12:50 PM
Agreed -- this has been discussed before and the techniques are no different for portlets than with traditional servlets. Do a search of 'pagination' here in the forums and you will find lots of discussions. Some quick pointers:
To do it at the View layer, you might want to look at the DisplayTag (http://displaytag.sourceforge.net/) library.
To do it at the Controller/Service layer, you should look at PagedListHolder (http://http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/beans/support/PagedListHolder.html).
To do it at the database layer using Hibernate, take a look at the article about Pagination (http://www.hibernate.org/314.html) over at the Hibernate site. There is also a good article over at DevX (http://www.devx.com/Java/Article/21383).
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.