Import the SQL classes so you can use Connection easily.
Make the connection reference a member variable of the servlet class.
Load the driver by creating the class. The name is always "sun.jdbc.odbc.JdbcOdbcDriver" if you are using the bridge.
Open the database connection by calling getConnection. The first parameter is always
"jdbc:odbc:YOURDSN" with YOURDSN replaced by the DSN to which you want to connect.
The second and third parameters specify an id and password.
In the next lesson, you will learn how to read from a data source.