wood burning stoves 2.0*
The moose likes Servlets and the fly likes How to display variant number of record each page based on user's request ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

How to display variant number of record each page based on user's request ?

Ian Yang
Ranch Hand

Joined: Nov 27, 2001
Posts: 44
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". The usage of jsp/servlet is flexible with me.
conceptually, what jsp/servlet trick will be used ? any book or url discussing this ?
Thanks,
Yang
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4458
    
    6

Ian,
This question has already been answered in the JSP forum: http://www.javaranch.com/ubb/Forum50/HTML/000447.html
For your future reference, post questions in the most appropriate forum and please do not post the same question to multiple forums.
There is also a search facility on this site and we strongly urge new visitors to use it before posting a question in order to avoid duplication.
Last but not least, please take a moment to scan the FAQ for more useful information that will help make your visit here more productive and pleasant.
Thank you for your cooperation and welcome to JavaRanch!
Junilu

Junilu - [How to Ask Questions] [How to Answer Questions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to display variant number of record each page based on user's request ?