Hi,
OS WIN 2K,
Tomcat is 4.1.3 , jdk 1.4.2_03 , udb is 7.2
When I use the following code in a
jsp it works without a problem
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
con = DriverManager.getConnection( ); // proper arguments inside
But, If I replace the above with the following in the same file , I get
the exception
javax.servlet.ServletException: Unable to get connection, DataSource
invalid: "No suitable driver"
<sql:setDataSource var="myDataSource" driver="COM.ibm.db2.jdbc.app.DB2Driver" url="jdbc :db2:mydb" user="abc" password="xyz" />
<sql:query var="rowdetails" dataSource=${myDataSource}>
SELECT a, b, c from sometable
</sql:query>
I have looked into the other similar postings in the same group. But no success. I have not configured a default data source in server.xml and I dont have entries in /WEB-INF/web.xml for this data source
Thanks,
K matt
[ October 19, 2005: Message edited by: k matt ]
[ October 19, 2005: Message edited by: k matt ]
[ October 19, 2005: Message edited by: k matt ]
[ October 19, 2005: Message edited by: k matt ]