Biswajit
May 10th, 2000, 07:19 AM
Hello
I have a servlet that selects n no. of records from the database .
Afterwards I send this data to the screen using five records at a time .
The page has option of going UP and DOWN . This means that whenever the user clicks UP
, the servlet should show him the next five record and if he clicks on DOWN then the last five records
will be shown .
I have written a servlet which selects n no of records and displays the first 5.
next when he clicks UP I have to execute another servlet whick should display the next five records .
now in the first case I have already executed a select statemnt and I have the resultset . So in
the second case ( I mean when I click UP) I don't want to execute another SQL statemnt , instead I
want to use the existing resultset .
How should I do .
Thanks in advance.
bye
Biswajit
I have a servlet that selects n no. of records from the database .
Afterwards I send this data to the screen using five records at a time .
The page has option of going UP and DOWN . This means that whenever the user clicks UP
, the servlet should show him the next five record and if he clicks on DOWN then the last five records
will be shown .
I have written a servlet which selects n no of records and displays the first 5.
next when he clicks UP I have to execute another servlet whick should display the next five records .
now in the first case I have already executed a select statemnt and I have the resultset . So in
the second case ( I mean when I click UP) I don't want to execute another SQL statemnt , instead I
want to use the existing resultset .
How should I do .
Thanks in advance.
bye
Biswajit