This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to scroll data to view other records

 
Shumaiza Manzoor
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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.
 
aamir abbas
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
thanx aamir, yes it slows down the application.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic