Hi I have a code something like this in JSP.
With this code i'm displaying a large number of records(in thousands) in the one single JSP.
Rather i would like to paginate it or like to display the results in multiple pages (with page Links).
I want to display some 100 records in each page.. .
Can any one help me in paginating the display...
urgent help needed pls...!!!
<%String st1 = request.getParameter("X");
String st2 = request.getParameter("Y");
// get the X & Y from the request// pass these two strings to a java program FIF// to get the table
rows.FIF fif = new FIF();
ModelInput mi = new ModelInput();
mi.setLi1(st1);
mi.setLi2(st2);
Collection c1 = fif.getResults(mi);
%>
<!-- this is to display the Results-->
<TABLE><TR><TH>Temp ID</TH><TH >S1</TH><TH >S1-O</TH><TH >S2 </TH><TH >S2-O</TH><TH WIDTH="15%">S1 Pro </TH><TH WIDTH="15%">S2 Pro</TH><TH> Eodd</TH><TH>V-p</TH></TR><%if(c1 != null){Iteratoriter = c1.iterator();ModelOutput mo = null;while (iter.hasNext()) {mo = (ModelOutput) (iter.next());%><TR class="ListData"><TD><%=mo.getTempid()%></TD><TD><%=mo.getS1()%></TD><TD><%=mo.getS1O()%></TD><TD><%=mo.getS2()%></TD><TD><%=mo.getS2O()%></TD><TD><%=mo.getS1Pro()%></TD><TD><%=mo.getS2Pro()%></TD><TD><%=mo.getEOdd()%></TD><TD><%=mo.getVp()%></TD></TR><%} // while end}%></TABLE> </body></html>