Macromedia dreamweaver 8-using dreamweaver Benutzerhandbuch

Seite von 1030
633
27
CHAPTER 27
Database Connections for 
JSP Developers
To use a database with a JavaServer Pages (JSP) application, you need to create a database 
connection in Macromedia Dreamweaver 8. This chapter describes how to create 
the connection.
The chapter assumes you have set up a JSP application (see 
). It also assumes you have a database set up on your local computer 
or on a system to which you have network or FTP access. 
To connect to the sample database provided by Dreamweaver, see “Setup for Sample JSP Site” 
in Getting Started with Dreamweaver. To learn more about databases and database 
connections, see 
.
About database connections in JSP
A JSP application must connect to a database through a JDBC driver. The driver acts as an 
interpreter that lets a JSP application communicate with a database. 
JSP connections
A JSP application must connect to a database through a JDBC driver. For more information 
on JDBC and the role of database drivers, see 
You must specify certain parameter values to connect through your JDBC driver. For more 
information, se
. For the parameter values 
specific to your driver, see the driver vendor’s 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