Hi Pawan
 i guess it can be done in 2 ways :

1.Simplest replace your driver with JDBC 2.0 which supports scrollable
result set
and keep a class variable with servlet which keeps the pageCount.

 2.use helper class as you have been doing  along with a class variable with
servlet which keeps the pageCount.
    have logic in the helper class that depending on the value of page
counter passed to it,it returns the appropraite values.


HTH
Abhishek
> -----Original Message-----
> From: Aggarwal, Pawan [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, June 09, 2000 11:09 AM
> To:   [EMAIL PROTECTED]
> Subject:      Urgent:Displaying 10 records in one page
>
> Hi,
>
> I am using a servlet to display 10 out of nth records got from the
> database..
> The servlet is using a helper class to get Hashtable..
>
> Now the same servlet will be called to display to another 10 records...
>
> How do I store the Hashtable so that the next time it reads the servlet
> It displays next 10 records.
>
> If someone has a piece of code will be of great help!!
>
> Thanks
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> 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".
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