The JDBC specification is not at level 2.0 and ResultSet.first() is one of
the methods that is part of the 2.0 spec. Many JDBC drivers do not support
the 2.0 spec yet which is why you are seeing this problem,

Kevin Jones
DevelopMentor

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of su
ying
Sent: 11 January 2000 05:54
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

___________________________________________________________________________
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