the method signature for getConnection is:
public static synchronized Connection getConnection(String url,
String user, String password) throws SQLException
try PURE JSP Java Server Pages by James Goodwill from Sams. a nice book.
has some coding errors.
At 04:02 PM 7/18/01 -0600, you wrote:
>I am starting using mysql and I made a java SimpleQuery servlet that is
>suppose to retreive one row from the database. However, when I try to
>connect I get that message from the Subject. I know I'm suppose to pass
>the password but can't seem to find a way of doing it. I was wondering if
>the problem was with those two lines or if it was in the tdx mysql driver
>default configuration in the ODBC.
>
>Class c = Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
>dbConn = DriverManager.getConnection("jdbc:odbc:TestDSN;");
>
>I would appreciate if someone could help me to get my connection going.
>Thank you very much
>Luc Lalancette
----------
tom marlin
tjmarlin@stripped
fax / voice mail: 714 507 3802 ext 4881
Never be afraid to try something new. Remember that
- amateurs built the ark.
- professionals built the Titanic.