When I to connect to a access databse with a jdbc-odbc bridge it connects fine and everything works out.But when I try to connect the same database from the servlet in my tomacat4.0 DriverManager.getConnection("jdbc dbc D","",""); is not working.Can anyone please help me.bye.
karl koch
Ranch Hand
Joined: May 25, 2001
Posts: 388
posted
0
any error messages ? can you give us some example code ? k
raj guntupalli
Greenhorn
Joined: Dec 16, 2002
Posts: 27
posted
0
I commented some of the code to check the connectivity with the database (instead of initializing from the descriptor file). import java.io.*; import java.util.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class TestServlet extends HttpServlet { Connection dbConnection; /*public void init() {
The same question has also been posted HERE in the JDBC forum and we are experiencing duplicate conversations. Since the JDBC is the better forum for this question, I'm going to close this thread and direct anyone who wants to help to go to the other thread. Please don't post the same question in multiple forums. Dave