tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Walter <tx_scottwal...@yahoo.com>
Subject RE: How to get rs.last() supported by Tomcat
Date Sun, 18 Mar 2001 16:28:08 GMT
Tomcat will only look in the web-inf\classes and
web-inf\jar directories for classes.  If the driver is
already packaged in a jar file place it in the
web-inf\jar directory, otherwise place it in
web-inf\classes.

If you have just the classes to the driver, make sure
the package structure remains intact under
web-inf\classes

You might have to restart tomcat for the effect to
take place.
--- Jack Li <JLi@MurraysDiscount.com> wrote:
> Scott,
> 
> I created the statment by using:
> 
>  "createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
> ResultSet.CONCUR_READ_ONLY)"
> 
> I pointed JAVA_HOME to c:\jdk1.3. As I know, jdk3.0
> has JDBC 2.0 in it. When
> I used the javac to compile a similar program at DOS
> prompt and it worked
> fine. But the same code in JSP got no class error
> message. Do I need to
> install JDBC2.0 separately?
> 
> Thanks,
> Jack
> 
> -----Original Message-----
> From: Scott Walter [mailto:tx_scottwalter@yahoo.com]
> Sent: Sunday, March 18, 2001 10:11 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: How to get rs.last() supported by
> Tomcat
> 
> 
> First of all are you using a JDBC 2.0  driver?  How
> are you creating your statement object.  By default
> statement objects are forward-only.  You need use a
> onverloaded version of the createStatement() method
> to
> make it scrollable, which is needed for the last()
> method.  Check the jdk api docs for the exact syntax
> of the overloaded createStatement() method.
> 
> scott.
> --- Jack Li <JLi@MurraysDiscount.com> wrote:
> > Hello,
> > I need help on JDBC 2.0.
> > I have Apache,  Tomcat 3.2.1 and jdk1.3. But I
> can't
> > call JDBC 2.x methods
> > such as rs.last(). Any ideas?
> >
> > Thanks,
> > Jack
> >
> 
> 
> =====
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Scott
> 
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
> 


=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Scott

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Mime
View raw message