YES i did,i selected ms access driver(*.mdb) User data source as db2 database c:\db2.mdb;
The statement /*connection = DriverManager.getConnection("jdbc:odbc:db2");*/ is throwing the exception.... so i think there s something wrong with the path "jdbc:odbc:db2".Can you please send me correct path ? Do i need to install any driver for connecting servlet to ms-access?
For MS-Access connection, -- First you have to register DSN and make username and password there. -- After that link the database of your application to that DSN. -- In the connection statement, mention as connection myconn = DriverManager.getConnection("jdbc:odbc:DSNname","username","password");