nirali shah wrote:
Question is, this driver has to be in the system before it is loaded.
Yes.
nirali shah wrote:
How does the driver get in the system ?
By putting driver's Jar file in classpath
nirali shah wrote:
Does it come with the import of "java.sql.* " package ?
No. 'java.sql' package provides the general class required to build
JDBC code, also with 'Driver' class which has to be implemented by the Database Vendor in order to make JDBC driver.
nirali shah wrote:
Is this only driver available to connect to mysql from jsp ?
Interestingly, I never used/knew this driver, what I used for MySql is
JConnector.
nirali shah wrote:
How to find the exact name of the driver to load it ? I mean I did not know the driver name to connect to mysql db I saw before this code. If I have to connect to DB2, how to find the name of the required driver ?
Consult the vendors page, asking about JDBC connection, If its MySQL, check there site,If its DB2, look at there site OR simple Consult Google