How to display variant number of record each page based on user's request ?
posted 14 years ago
On one shopping cart jsp page it displayes the records retrieved from database in table format. Now I find I have so many records (rows) to display, so I want to give user an option to choose how many rows they want to view on each page, e.g. they can choose to view 10 rows, or 20 rows, and if they choose 20 rows per page, I will provide buttons like "next 20", "previous 20". conceptually, what jsp/servlet trick will be used ? any book or url discussing this ? Thanks, Yang