• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get ten records per page?????

 
ameem sami
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
i am building a shopping cart project,the problem is that i need to show ten items per page ,then when the user clicks the next page link the next ten records should be displayed ,can any body help .
thanks in advance.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ameem sami:
i need to show ten items per page ,then when the user clicks the next page link the next ten records should be displayed ,can any body help.

Why not take the trouble to have a browse through the forum before you ask a question? It's, like, the answer may be staring you in the face
I'm certainly not going to type it up twice
- Peter

[This message has been edited by Peter den Haan (edited February 04, 2001).]
 
Roshan Dawrani
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an example given in the book "Java Servlets by Karl Moss, published by McGraw-Hill" for exactly this requirement.
You need to refer to the Chapter 9 - "Using JDBC in Servlets" I think.
Another option is to go to Kar Moss' webpage - http://www.servletguru.com/book.htm and have a look at the working code.
Hope it helps.
rgds,
Roshan
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
the solution is simple if you r using vectors.....i don't know whether you r doing d`so .
secondly ...r u making a cart in servlet or jsp with beans .
i've wokrked on a similar prob just a week ago ...i can surely help you out .
please give me the full details of your project and mail it to me at :---- rax_india@yahoo.com.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic