newbe cant get mysql with jsp

J

joe

Hello I am getting

org.apache.jasper.JasperException: Exception in JSP: /test.jsp:13

10: //try {
11:
12: Connection ocon = null;
13: Class.forName("org.gjt.mm.mysql.Driver");
14:
15: ocon = DriverManager.getConnection("jdbc:mysql://localhost/
test","test","test");
16: //ocon = DriverManager.getConnection("jdbc:mysql://localhost/test?
user=test&password=te

My database is call test, my table is called test and the username and
password are call test

I added this to the tomcat5.conf
LD_LIBRARY_PATH=/usr/share/java
#LD_LIBRARY_PATH=/usr/share/java/mysql-connector-java.jar

#CLASSPATH=${CLASSPATH}:/usr/share/java/mysql-connector-java.jar
CLASSPATH=${CLASSPATH}:/usr/share/java/mysql-connector-java-3.1.12.jar

but no cheese, please help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top