Connecting to the sample database (JSP) 299
2.
Click the Plus (+) button on the panel and select ODBC Database (Sun
JDBC-ODBC Driver) from the pop-up menu.
The ODBC Database (Sun JDBC-ODBC Driver) dialog box appears.
3.
Enter
connTownsend
as the connection name.
4.
(Windows only) Do one of the following:
■
If your server is on your local computer, select the Using Driver On
This Machine option.
■
If your server is on a remote system, select the Using Driver On
Testing Server option.
Macintosh users can ignore this step because all database connections
use drivers on the testing server.
5.
Replace the
[odbc dsn]
placeholder in the URL text box with
CafeTownsend
.
The URL text box should look like this:
jdbc:odbc:CafeTownsend
If you’re using Dreamweaver on a Windows computer, during
installation, Dreamweaver created a DSN called CafeTownsend
pointing to the Microsoft Access database in the Dreamweaver
application folder.
6.
Click Test.
Dreamweaver attempts to connect to the database. If the connection
fails, do the following:
■
Double-check the DSN and the other connection parameters.
■
Check the settings for the folder Dreamweaver uses to process
dynamic pages (see
“Specifying where dynamic pages can be
processed” on page 293
).
■
Consult
Chapter 29, “Troubleshooting Database Connections”
in
Using Dreamweaver
(Help > Using Dreamweaver).
7.
Click OK.
The new connection appears in the Databases panel.
The sample JSP application is now set up for the
Getting Started with
Dreamweaver
tutorials. For more information, see
“Tutorial: Developing a
Web Application” on page 197
.
Summary of Contents for DREAMWEAVER 8-GETTING STARTED WITH...
Page 1: ...Getting Started with Dreamweaver...
Page 8: ...8 Contents...
Page 10: ......
Page 46: ...46 Dreamweaver Basics...
Page 48: ......
Page 128: ...128 Tutorial Formatting Your Page with CSS...
Page 136: ...136 Tutorial Publishing Your Site...
Page 138: ......
Page 189: ...Add a Repeat Region XSLT object 189 3 Select Insert XSLT Objects Repeat Region...
Page 196: ...196 Tutorial Displaying XML Data...
Page 216: ......
Page 230: ...230 Understanding Web Applications...
Page 236: ...236 Installing a Web Server...
Page 254: ...254 Setup for Sample ColdFusion Site...
Page 268: ...268 Setup for Sample ASP NET Site...
Page 284: ...284 Setup for Sample ASP Site...
Page 300: ...300 Setup for Sample JSP Site...
Page 320: ...320 Setup for Sample PHP Site...