[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: Get information from a database in a JSP with GNUJSP1.0.0


You got me there because I just started using jdk1.2 (just from jdk1.17).  I thought they did away with classes.zip in 1.2?

At any rate, I assume then you are using the default sun.jdbc.odbc.JdbcOdbcDriver?

What does your error log say?  Did you try putting in the catch SQLException to see what that error message says?

Can you run java servlets which access the database?  Plain java apps?  I believe catching the exception error should tell you whats wrong.  Here's what I usually throw at the end of my Db related try's:

        } catch(ClassNotFoundException e) {
                out.println("ClassNotFoundException error: " + e.getMessage());
        } catch(SQLException e) {
                out.println("SQLException error: " + e.getMessage());
        } catch(NullPointerException e) {
                out.println("NullPointerException error: " + e.getMessage());
        }
 

-ron

Jose Luis Diaz wrote:

Thanks for your answer. But I dont know how to specifiy mi JDBC driver, I am using the jdbcodbc driver included in the classes.zip of the jdk1.2.2 for using an ACCESS database. I am using NT 4.0 so I have configure the ODBC32 to use the database, I dont know if I have to put the database in some concrete place or what is the problem...If you have any idea... Thanks for all 

--
Ron Parker
Software Creations            http://www.scbbs.com
TradeWinds Publishing         http://www.intl-trade.com
TradePoint Los Angeles        http://www.tradepointla.org
SiteDirector Security Server  http://livepublish.scbbs.com
Civil War Online Library      http://civilwar.scbbs.com