Obviously an attribute error within the tag cfinclude!

The error occurred while processing an element with a general identifier of
(CFINCLUDE)

Its a bit difficult when you can't see the page.

Correct construct <cfinclude TEMPLATE="template_name">

-----Original Message-----
From: David Burt [mailto:[EMAIL PROTECTED]]
Sent: 13 February 2001 16:20
To: Fusebox
Subject: Problems with cf_reuseform


Created these pages straight from the example that came with the tag.  Any
ideas?

error I am getting:

Error Diagnostic Information
Just in time compilation error

Invalid parser construct found on line 20 at position 29. ColdFusion was
looking at the following text:

"
Invalid expression format. The usual cause is an error in the expression
structure.
The last successfully parsed CFML construct was static text occupying
document position (18:11) to (20:21).

The specific sequence of files included or processed is:
D:\INETPUB\WWWROOT\TECHNOLOGY\SITES\DEFAULT.CFM      
  D:\INETPUB\WWWROOT\TECHNOLOGY\SITES\DSP_SITE.CFM      CFInclude

The error occurred while processing an element with a general identifier of
(CFINCLUDE), occupying document position (14:5) to (14:39) in the template
file D:\INETPUB\WWWROOT\TECHNOLOGY\SITES\DEFAULT.CFM.


Internal Web Address:
http://intranet/sites/default.cfm?fuseaction=addSite


File:  default.cfm
                        <cfcase value="addSite">
                                <cfinclude template="qry_getSite.cfm">
                                <cfinclude template="dsp_Site.cfm">
                        </cfcase>

File:  qry_getSite.cfm
<cfparam name="attributes.siteid" default="0">
<cfquery name="getSite" datasource="#Attributes.DSN#" dbtype="ODBC">
        SELECT SiteID, SiteShortName, SiteName, Location
        FROM Site 
        WHERE SiteID = #val(attributes.siteid)#
</cfquery>

File:  dsp_Site.cfm
<!--- This will check will check to see whether the data should be displayed
from
        the database or create a new record --->
<cfparam name="attributes.displayaction" default="new">
<cfif getSite.recordcount and attributes.displayaction is not "form" or
attributes.displayaction is not "url">
        <cfset attributes.displayaction="query">
</cfif>
<cf_reuseform
        Action="#attributes.displayaction#"
        datasource="#attributes.DSN#"
        fieldlist="siteID, siteShortName, SiteName, Location"
        queryname="getSite">
        
<!--- Note the value of each field is coming from the <cf_reuseform> tag,
        depending on the action will determine where the data comes from,
i.e. blank, query data
        form data or url data (the last two are for data validation)--->

<form method="post" action="default.cfm">
<cfoutput>
  <table width="332" border="0" cellspacing="2" cellpadding="3">
    <tr bgcolor="#000066"> 
      <td colspan="2"> 
        <div align="center"><b><font color="#FFFFFF">Site</font></b></div>
      </td>
    </tr>
    <tr> 
      <td width="119"> 
        <div align="right">Site Name:&nbsp;&nbsp;</div>
      </td>
      <td width="195"> 
        <input type="text" name="SiteName" id="SiteName" value="#SiteName#">
      </td>
    </tr>
    <tr> 
      <td width="119"> 
        <div align="right">Site Short Name:&nbsp;&nbsp; </div>
      </td>
      <td width="195"> 
        <input type="text" name="SiteShortName" id="SiteShortName"
value="#SiteShortName#">
      </td>
    </tr>
    <tr> 
      <td width="119"> 
        <div align="right">Location:&nbsp;&nbsp; </div>
      </td>
      <td width="195"> 
        <input type="text" name="location" value="#Location#">
      </td>
    </tr>
    <tr> 
      <td colspan="2"> 
        <div align="center"> 
                  <input type="hidden" name="SiteID" id="SiteID"
value="#SiteID#">
          <input type="submit" name="Submit" value="Submit">
        </div>
      </td>
    </tr>
  </table>
</cfoutput>
</form>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to