• 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

how to scroll data to view other records

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
i am using servlets to retrieve data from data base,now i want to scroll data like Data Control in visual basic to see all records one by one on clicking on a button.
for example when i click on button 1st record will be shown in text fields and on the same way i want to move my record next.
how can i do in servlet. i have a class Employee.class and it displays only one record, i want to see all record on the same page by clicking next.
plzz help me,
thanx in advance.
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Shumaiza,
u r trying to perform a task like Data Control in VB ... it is possible in Servlet but its quite difficult n slows down ur application ... coz u have to run ur servlet agin (on button click) and on each click u have to move resultset pointer to next record (keeping previous record in mind)....
its a method to do what u want ...
but i won't suggest u this method .... it costs inefficiency of application.
if u want to display all records on a same page then display all records in form of table when 1st time servlet loads ...
Aamir
 
Shumaiza Manzoor
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanx aamir, yes it slows down the application.
 
reply
    Bookmark Topic Watch Topic
  • New Topic