• Post Reply Bookmark Topic Watch Topic
  • New Topic

Records per page

 
sandeep balyan
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • 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
 
ersin eser
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
  • 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.
 
Joe Pardi
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a peek at a tag based option -
http://www.dotjonline.com/taglib/grid.jsp
 
Ali Hassaan
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • 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
  • 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...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!