This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ian Yang
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ilja Smoli
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is good conversation about this problem: http://www.javaranch.com/ubb/Forum7/HTML/006603.html
 
Joe Pardi
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try taking a peek at http://www.dotjonline.com/taglib/grid.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic