Download PC Drivers - Your Ultimate PC Forums

Full Version: want to do search results paging like google. need
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
next button link. Using jsp need to do. pl help? //Paging------------------------------------------------String links="";int pages;int PageCounter;PageCounter = (row_count / 5) + 1;if ((PageCounter * 5) + 1 >= row_count){PageCounter++;}int p;for(p = 1; p < PageCounter ; p++){links=links+"<a href=jsearch_tutors('"+type+"','"+category+"','"+p+"')>"+ p +"</a>Â*|Â*";}int cpage;int currentRs;String pt;//Paging------------------------------------------------if (pagenum.equals("null")){currentRs = 0;}else{cpage = Integer.parseInt((String)pagenum);currentRs = 5 * (cpage - 1);}
Reference URL's