The definition file for your connection type
109
The server behavior file includes this connection by using the
cfinclude
statement, as shown in
the following example:
<cfinclude template="Connections/MyConnection1.cfm">
JSP
The JSP include file should be named MyConnection1.jsp, where MyConnection1 is the name of
your connection. The following example is the include file for a JDBC connection to a database:
<%
// Filename="Connection_jdbc_conn1.htm"
// Type="JDBC"
// HTTP="false"
// Catalog=""
// Schema=""
String MM_MyConnection1_DRIVER
= "com.inet.tds.TdsDriver";
String MM_MyConnection1_USERNAME
= "testadmin";
String MM_MyConnection1_PASSWORD
= "velcro";
String MM_MyConnection1_URL
= "jdbc:server:test-3:1433?database=pubs";
%>
The server behavior file includes this connection by using the relative file include statement, as
shown in the following example:
<%@ include file="Connections/MyConnection1.jsp" %>
The definition file for your connection type
For each server model, there is a connection_includefile.edml file that defines the connection type
and maps the properties that are defined in the include file to elements in the Dreamweaver
interface.
Dreamweaver provides seven default definition files, one for each of the predefined server models,
as listed in the following table.
Dreamweaver uses the
quickSearch
and
searchPattern
parameters to recognize connection
blocks and the
insertText
parameter to create connection blocks. For more information on
EDML tags and attributes, and regular expression search patterns, see “Server Behaviors” in
Extending Dreamweaver
.
Server model
Subfolder within the Configuration/Connections folder
ASP JavaScript
ASP_Js
ASP.NET CSharp
ASP.NET_Csharp
ASP.NET VBScript
ASP.NET_VB
ASP VBScript
ASP_Vbs
ColdFusion
ColdFusion
JavaServer Page
JSP
PHP MySql
PHP_MySql
000_DW_API_Print.book Page 109 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...