J
junk1
I have the following problem with servlets that use JDBC.
Basically if I have a servlet that runs a query and returns a
potentially huge result set to the user then I want to display a 'next'
'previous' kind of dialog and only display the first 10 rows for
example.
This is quite easy to achive, but relies on holding the result set
object open between calls (ie whilst waiting for user to press
'next'/'previous') This is bad since it means hogging a connection
object for that user.
I understand that this must be a common problem and im probably not the
first to try and address it, so rather than reinvent the wheel I would
appreciate it if anyone would be willing to share how they do it, or
point me in the direction of a known pattern for this kind of access.
Thanks
David Bevan
http://www.davidbevan.co.uk
Basically if I have a servlet that runs a query and returns a
potentially huge result set to the user then I want to display a 'next'
'previous' kind of dialog and only display the first 10 rows for
example.
This is quite easy to achive, but relies on holding the result set
object open between calls (ie whilst waiting for user to press
'next'/'previous') This is bad since it means hogging a connection
object for that user.
I understand that this must be a common problem and im probably not the
first to try and address it, so rather than reinvent the wheel I would
appreciate it if anyone would be willing to share how they do it, or
point me in the direction of a known pattern for this kind of access.
Thanks
David Bevan
http://www.davidbevan.co.uk