• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Records per page

 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends Iam having near about 2000 records i want to display 10 records per page is there any nice way for this IAm using jsp and oracle 8i ..

thx in advance
sandeep
 
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have seen developers doing this thru custom tags and I believe that Simon talks about paging with custom tags in his newbook.
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take a peek at a tag based option -
http://www.dotjonline.com/taglib/grid.jsp
 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi sandeep following query can be use for querying record from table.
"select a.emp_id from tbl_employee a where page_size>
(select count(*) from tbl_employee b
where a.emp_id>b.emp_id and b.emp_id >=initial_value)
and emp_id >=initial_value"
let suppose you have to query first 10 records from table for first page so you place 10 in place of page size and in place of initial value you write value from where next 10 records have to be search.
In my scenario i have to find records from employee table you can write your own query for this...
 
Ali Hassaan
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi sandeep following query can be use for querying record from table.
"select a.emp_id from tbl_employee a where page_size>
(select count(*) from tbl_employee b
where a.emp_id>b.emp_id and b.emp_id >=initial_value)
and emp_id >=initial_value"
let suppose you have to query first 10 records from table for first page so you place 10 in place of page size and in place of initial value you write value from where next 10 records have to be search.
In my scenario i have to find records from employee table you can write your own query for this...
reply
    Bookmark Topic Watch Topic
  • New Topic