macromedia COLDFUSION MX 7 Web Application Construction Kit [Electronic resources]

Ben Forta, Raymond Camden, Leon Chalnick, Angela Buraglia

نسخه متنی -صفحه : 281/ 187
نمايش فراداده

  • Tag Groups by Function

    This section groups ColdFusion tags by functional category. For the tag description, refer to the page number.

    Database Manipulation

    Table B.1. Database Manipulation Tags

    TAG

    DESCRIPTION

    <cfinsert>

    Add a single row to a database table.

    <cfobjectcache>

    Manipulate cached query objects.

    <cfprocparam>

    Pass and retrieve parameters to and from <cfstoredproc>-invoked stored procedures.

    <cfprocresult>

    Specify the result sets to be retrieved with <cfstoredproc>-invoked stored procedures.

    <cfquery>

    Submit SQL statements to a data source that is either previously configured or dynamically generated, or to another query.

    <cfqueryparam>

    Define <cfquery> query parameters and their data types.

    <cfstoredproc>

    Invoke a SQL stored procedure.

    <cftransaction>

    Group multiple <cfquery> uses into a single transaction.

    <cfupdate>

    Update a single row in a database table.

    Data Output

    Table B.2. Data Output Tags

    TAG

    DESCRIPTION

    <cfchart>

    Generates and then displays a graph as a269 object.

    <cfchartdata>

    Defines data used with <cfchart>.

    <cfchartseries>

    Defines a series of data used with <cfchart>.

    <cfcol>

    Specify columns in a <cftable> HTML table.

    <cfcontent>

    Set the MIME type so as to be able to send no269 documents to a client's browser.

    <cfdocument>

    Creates FlashPaper or PDF-type output from CFML block.

    <cfdocumentitem>

    Enables you to create page breaks, headers, and footers.

    <cfdocumentsection>

    Enables you to divided PDF or Flashpaper output into sections.

    <cfflush>

    Flushes ColdFusion's output buffer, sending the contents back to the Web browser.

    <cfgraph>

    Deprecated. Use <cfchart>.

    <cfgraphdata>

    Deprecated. Use <cfchartdata>.

    <cfheader>

    Control the contents of specific HTTP headers.

    <cfoutput>

    Resolves and outputs ColdFusion variables and expressions.

    <cfprocessingdirective>

    Suppress white space between the start and end tags; also used to specify page encoding.

    <cftable>

    Create a complete data-drive269 <table> automatically.

    Extensibility

    Table B.3. Extensibility Tags

    TAG

    DESCRIPTION

    <cfargument>

    Defines an argument in a function defined with <cffunction>.

    <cfcomponent>

    Defines a ColdFusion component object.

    <cffunction>

    Defines a function.

    <cfimport>

    Copies a Java Server Page (JSP) tag library into a CFML page.

    <cfinvoke>

    Works with web services and components to invoke methods.

    <cfinvokeargument>

    Used with <cfinvoke> to provide an argument to the method.

    <cfobject>

    Enables you to use COM, Java, and CORBA objects within your ColdFusion applications.

    <cfproperty>

    Enables you to define a component's properties.

    <cfreport>

    Provides an interface to reports created with the Crystal Reports Professional report writer.

    <cfreturn>

    Returns an expression from a function.

    <cfxml>

    Creates a ColdFusion XML document.

    Variable Manipulation

    Table B.4. Variable Manipulation Tags

    TAG

    DESCRIPTION

    <cfcookie>

    Set cookies, persistent client-side variables, on the client browser.

    <cfparam>

    Specify default values for parameters and flag parameters that are required.

    <cfsavecontent>

    Save the output of a page or portion of a page in a variable.

    <cfset>

    Assign a value to a variable.

    Flow Control

    Table B.5. Flow Control Tags

    TAG

    DESCRIPTION

    <cfabort>

    Immediately halt processing of a ColdFusion template.

    <cfbreak>

    Break out of a looping process but does not stop ColdFusion processing, in contrast to <cfabort>.

    <cfcase>

    Specify a case statement within a <cfswitch> block.

    <cfcatch>

    Create catch blocks to catch errors in a <cftry> block.

    <cfdefaultcase>

    Specify a default case statement within a <cfswitch> block.

    <cfelse>

    The else portion of a <cfif> statement.

    <cfelseif>

    The else if portion of a <cfif> statement.

    <cfexit>

    Abort the processing of a custom tag without aborting processing of the calling template.

    <cfif>

    Perform conditional processing.

    <cflocation>

    Redirect a browser to a different URL.

    <cfloop>

    Implement programmatic looping.

    <cfrethrow>

    Force the current error to be invoked again within a <cfcatch> block.

    <cfscript>

    Mark blocks of ColdFusion script.

    <cfsilent>

    Suppress generated output.

    <cfswitch>

    Create a ColdFusion switch statement.

    <cfthrow>

    Force an error condition in a <cftry> block.

    <cftry>

    Catch exceptions thrown by ColdFusion or explicitly with <cfthrow> or <cfrethrow>.

    Debugging Tools

    Table B.6. Debugging Tags

    TAG

    DESCRIPTION

    <cfdump>

    Output the contents of simple variables, queries, structures, arrays, serialized WDDX packets and XML documents for debugging.

    <cftrace>

    Log debugging information about the state of an application.

    <cftimer>

    Displays the amount of time a section of code took to execute.

    Internet Protocols

    Table B.7. Internet Protocol Tags

    TAG

    DESCRIPTION

    <cfftp>

    Interface to FTP, the Internet standard file transfer protocol.

    <cfhttp>

    Interface to HTTP, the Internet standard hypertext transfer protocol.

    <cfhttpparam>

    Pass parameters to a <cfhttp> request.

    <cfldap>

    Interact with LDAP servers.

    <cfmail>

    Generate SMTP mail from within ColdFusion templates.

    <cfmailparam>

    Specify <cfmail> headers or provide file attachments.

    <cfpop>

    Retrieve and manipulate mail in a POP3 mailbox.

    File Management

    Table B.8. File Management Tags

    TAG

    DESCRIPTION

    <cfdirectory>

    Obtain directory lists; manipulate directories.

    <cffile>

    Perform file-management operations, including uploading files from a browser; moving, renaming, copying, and deleting files; and reading and writing files.

    Web Application Framework

    Table B.9. Web Application Framework Tags

    TAG

    DESCRIPTION

    <cfapplication>

    Define the scope of an application and specify several aspects of the application's configuration.

    <cferror>

    Override the standard ColdFusion error messages and replace them with error-handling templates you specify.

    ColdFusion Forms

    Table B.10. Form Tags

    TAG

    DESCRIPTION

    <cfapplet>

    Embed user-supplied Java applets in <cfform> forms.

    <cfcalendar>

    Embeds a Flash calendar i269 or Flash forms.

    <cfform>

    Enable the use of other tags (<cfgrid>, <cfinput>, <cfselect>, <cfcalendar>, <cfslider>, <cftree>, or any Java applets using <cfapplet>).

    <cfgrid>

    Create a Java applet data grid.

    <cfgridcolumn>

    Specify a <cfgrid> column explicitly.

    <cfgridrow>

    Specify a <cfgrid> data row.

    <cfgridupdate>

    Activate backend support for <cfgrid> in edit mode.

    <cfformgroup>

    Creates container for controls in Flash or XML forms.

    <cfformitem>

    Inserts lines and text in Flash and XML forms.

    <cfinput>

    Embed JavaScript client-side validation code in you273 forms.

    <cfselect>

    Simplify the process of creating data-driven <select> form controls.

    <cfslider>

    Create a Java applet slider control.

    <cftextinput>

    Deprecated. Use <cfinput>.

    <cftree>

    Create a Java applet tree control.

    <cftreeitem>

    Specify tree elements for a <cftree> tree control.

    Security

    Table B.11. Security Tags

    TAG

    DESCRIPTION

    <cflogin>

    Provides a shell for authenticating users.

    <cfloginuser>

    Provides user authentication information to security framework.

    <cfntauthenticate>

    Provides means of authenticating users against CF server's NT Domain.

    <cflogout>

    Log user out of security framework.

    <cfauthenticate>

    Obsolete (no longer in use).

    <cfimpersonate>

    Obsolete (no longer in use).

    CFML Utilities

    Table B.12. Utility Tags

    TAG

    DESCRIPTION

    <cfassociate>

    Associate subtags, or child tags, with base tags.

    <cfcache>

    Improve the performance of pages in which content doesn't need to be dynamically created each time the page is requested; ColdFusion instead returns stati258 output created during prior processing.

    <cfexecute>

    Execute processes on the ColdFusion server machine.

    <258head>

    Write text into the header section of your Web page.

    <cfinclude>

    Include the contents of another template in the one being processed.

    <cflock>

    Place exclusive or read-only locks around a block of code.

    <cflog>

    Produce user-defined log files.

    <cfmodule>

    Execute a custom tag explicitly stating its full or relative path.

    <cfregistry>

    Directly manipulate the system Registry.

    <cfschedule>

    Programmatically create, update, delete, and execute tasks in the ColdFusion Administrator's scheduler.

    <cfservlet>

    Deprecated (no longer in use).

    <cfservletparam>

    Deprecated (no longer in use).

    <cfsetting>

    Control various aspects of page processing, such as controlling the output o261 code in your pages or enabling and disabling debug output.

    <cfwddx>

    Serialize and deserialize ColdFusion data structures to the XML-based WDDX format.

    Verity Search