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 |
which method is used to know the status of the Thread?
How do you clear a method in java?
How many bytes is a string in java?
How do singleton patterns work?
How can we use primitive data types as objects?
How to optimize the javac output?
What is the symbol for line break?
What are the basic interfaces of java collections framework?
Is null an object in java?
Hi am an mca graduate . i have done bsc maths in my degree . every company asks me why you make shift from maths group to computere field . What i need to answer?
What is the difference between length and size in java?
What is compile time polymorphism?
20 Answers CTS, Elementus Technologies, Oracle,