Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Browsing through DATA  RSS feed

 
Anwarul Kabir
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I know this can be done very easily using JPA but I have to do this using prepared statement and cannot use JPA.

I am getting back say 1000 data but i want to show only 1st say 25 records and when the user hits next it will see the next 25 and so on (and now if they hit previous it will show the 1st 25 again...).

Can some one give me some idea how to aproach this?
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this JSP FAQ entry. Though I don't know if you are running JSPs, the concept would be the same if you are or are not.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!