Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes how to scroll data to view other records Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to scroll data to view other records" Watch "how to scroll data to view other records" New topic
Author

how to scroll data to view other records

Shumaiza Manzoor
Greenhorn

Joined: Sep 03, 2001
Posts: 6
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

Joined: May 04, 2001
Posts: 19
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

Joined: Sep 03, 2001
Posts: 6
thanx aamir, yes it slows down the application.
 
 
subject: how to scroll data to view other records
 
Similar Threads
Page wise display
Displaying records
Problem with JTable
wants to configure next and previous buttons for database entry !
Data grid