Best way is to create a bean class which will execute the query and get the
record set. Store the bean object in a session and then get the records from
the object with the starting and end count. JDBC 2 does not provide any such
facility. When you store the record set in a session object u need not call
the database every time.

Narayanan

                -----Original Message-----
                From:   Shuja Nawaz [mailto:[EMAIL PROTECTED]]
                Sent:   Monday, January 10, 2000 6:13 PM
                To:     [EMAIL PROTECTED]
                Subject:        Caching the records

                Hi.

                I want to display the records by parts. Like we have 90
records returned by
                the query.
                10 records are displayed at a time. When the user clicks
next link then next
                10 records
                are displayed and so on.
                Please suggest me how to cache the records so that I don't
have to
                re-execute the query
                when the user clicks for next 10 records.
                Does JDBC 2 provides any such facility?

                Thanks in anticipation.

                Regards.

                From:
                  Shuwaz.


===========================================================================
                To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
                For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST DIGEST".
                Some relevant FAQs on JSP/Servlets can be found at:

                 http://java.sun.com/products/jsp/faq.html
                 http://www.esperanto.org.nz/jsp/jspfaq.html
                 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
                 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to