A JSP application must connect to a database through a JDBC driver. For more information on JDBC and the role of database drivers, see Communicating with the database.
You must specify certain parameter values to connect through your JDBC driver. For more information, see JDBC connection parameters. For the parameter values specific to your driver, see the driver vendors documentation or consult your system administrator.
You can also use an ODBC driver (and so a Windows DSN) if you have a JDBC-ODBC Bridge driver. For more information, see Connecting through an ODBC driver.