Please use beforeFirst() or afterLast() methods of Resultsets. But the resultset
should be capable in moving both directions. For this i think u need to set some
variable values in Resultset Class, otherwise u will get SQLException Error that
resultset is not reversible..

Bye,
Vijay




abdul aleem <[EMAIL PROTECTED]> on 09/17/2000 06:17:17 PM

Please respond to "A mailing list for discussion about Sun Microsystem's Java
      Servlet API Technology." <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Vijay Deshpande/HAZIRA/RIL)
Subject:  how to manipulate resultset to scroll forward and backward Using
      servlets



Hai,
    can some one help me to print a set of result set
    values at one time and to go backward.
  Eg.

    suppose the in result set there are 15 values
   then

   First  print :        1,2,3,4,5,6,7   NEXT
   Second print : PREV   8,9,10,11,12,13 NEXT
   Third  print : PREV   14,15


  when i click next for the first time it should show
second print and Third print for other next

 similarly for previous also.

   i have done this by poplulating the result set in a
vector and manipulate the vector.

  it works fine for as long as it is used by single
user if two or more user access the same page of
servlet iam facing problems please help me out.

  Thanks in advance,

  aleem





__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to