PDA

View Full Version : Java server pages


arun1028
Jun 10, 2009, 01:28 AM
Can anybody tell me how to done paging in jsp... :)

LanMan
Jun 10, 2009, 07:14 AM
I assume you are referring to pagination and sorting which is sometimes called paging... if so, the Display tag library (Display tag library - Overview (http://displaytag.sourceforge.net/1.2/)) is a useful resource for doing such. There is also the JSP Pager tag library (<jsptags> Pager Tag Library (http://jsptags.com/tags/navigation/pager/index.jsp)). I played around with the first one (the Display taglib) a few years ago, but have never used either extensively, so I cannot say which might be better. But the first one (the Display taglib) appears to be a bit better documented and is a mature library and project.

Finally, the article "Pagination using JDBC and JSP (http://www.javaranch.com/journal/2008/08/pagination-using-JDBC-and-JSP.html)" discusses the subject. Try Googling the term pagination in JSP for more resources.