I have 100 records in a table with two rows. I need to
display 10 records per page like Google Search. I need only
the Logic(Pagination) in Pure Java. No JSP and all..Thanks
in Advance...
Answers were Sorted based on User's Feedback
Answer / avani
String strPageNum = request.getParameter(“pageNum”);
int pageNum = 0;
if(strPageNum != null){
pageNum = new Integer(strPageNum).intValue();
}
int maxRowsPerPage = new Integer(request.getParameter
(“rowsPerPage”)).intValue();
//calculate
int rowEnd = pageNum * maxRowsPerPage;
int rowStart = (rowEnd - maxRowsPerPage) + 1;
| Is This Answer Correct ? | 9 Yes | 8 No |
Is a method a function?
What is clipping and repainting and what is the relation between them?
What are the special characters?
what do you understand by synchronization? : Java thread
How to count occurrences of each duplicate element in a list {a,b,d,c,a,b} ? Thanks in Advance
What is the size of string?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
Explain wrapper classes in java?
Explain about member inner classes?
Can we declare main () method as non static?
what is the messsage u r going to get from an objectoriented programing?
How can an object be unreferenced?