Hello,

I think you are using JDBC-2.0, which does include ResultSet's first()
method.  But it seems the Oracle driver you are using is not a JDBC-2.0
compliant so it does not implement JDBC-2.0 methods like
first().

Regards




>From: "G.Betul Akin" <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: JDBC and JDK version? Help!
>Date: Tue, 11 Jan 2000 13:42:06 +0100
>
>Hi,
>JDK does not include a JDBC implementation. So you are using a JDBC driver
>by some other vendor. JDBC drivers may not implement all the methods
>specified in JDBC API. So first determine which driver you are using, check
>the API (of the driver you are using) to see which methods it implements.
>
>         -----Original Message-----
>         From:   su ying [SMTP:[EMAIL PROTECTED]]
>         Sent:   Tuesday, January 11, 2000 7:54 AM
>         To:     [EMAIL PROTECTED]
>         Subject:        JDBC and JDK version? Help!
>
>         Hi, all:
>             I'm developing servlets combining JDBC. The environment is
>Linux+Apache+Jserv+Oracle.  The JDK's version is 1.2. But I found many
>methods of JDBC don't work. For example:
>
>         import java.sql.ResultSet;
>         ...
>         public void service(HttpServletRequest request,
>HttpServletResponse
>response)
>                 throws ServletException, IOException
>         {
>          ...
>             Execute some query from my oracle db, and return the result to
>myResult;
>             if( myResult.first())
>                               ~~~~It does not work!
>             {   ....
>                 some operation;
>                ...
>              }
>          }
>         The only method which can work in class ResultSet is next(). Why?
>         Is my oracle driver too old? I searched the oracle website, they
>say
>that their driver can support JDBC up to version 1.22. My JDK is 1.2,
>what's
>the version of JDBC in it? 2.0? I'm confused with the JDBC and JDKversion.
>Or there's some other reasons?
>
>         Who can help me?
>         Thank you!
>
>         Ying
>
>
>___________________________________________________________________________
>         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

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.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

Reply via email to