User Guide
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