Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
Tick check! Okay, I guess that was just an itch. Oh wait! Just a tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic