Hi You can store the records in the resultSet n put that resultset in the session. on the click of the next button forward the jsp to the same one n pass a parameter which keeps on incrementing on the click of the button. Now for displaying a particular row use rs.absolute(int row)
> -----Original Message----- > From: Kwan, William [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, November 15, 2001 5:35 AM > To: [EMAIL PROTECTED] > Subject: Limiting number of records returned to be displayed > > Hi, > > I'm new to JSP and I have a couple of questions. > > 1) how do I display only one record on the page?? > 2) the user can scroll to the next or previous records by pressing a > next/previous button, get the next record to be displayed?? > > thanks, > Will > > ========================================================================== > = > 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://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com =========================================================================== 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
