i am unable to display the data in multiple pages. I am gettting data from the database from the javaBeans to jsp by vectors... but i am unable to displaying them in jsp 15 records per page... and also i have to give the option like pages 1,2,3,4.... when user clicks on 1(first page) means i have to display the first 15 records .. when on 2(second page) means i have to display the next 16th to 30th record.. like that so on... i need to implement in jsp.. If i get some example very much appreciated....
- Posted by: saleem s
- Posted on: March 11 2008 07:50 EDT
- Re: need help for dynamic pagination in jsp using beans by Vinod G on March 12 2008 02:49 EDT
- Re: need help for dynamic pagination in jsp using beans by Marina Prikaschikova on March 12 2008 07:29 EDT
- core-Tag c:forEach by Michael Holtermann on March 15 2008 10:24 EDT
Display tag will solve your problem.For that you need to give list as input. http://displaytag.sourceforge.net/11/
See for example paging taglib in Coldtags suite: http://www.servletsuite.com/servlets/pagertag.htm
Try the jstl-tags: begin and end might be filled with EL, too: where pager is a bean providing functionality for page browsing. Your links should call methods on that bean, like next(), first() etc. HTH, Michael.