I'm new to Fusebox but see it an ideal way to go.
I've spent most of the afternoon trying to sort out
issues with CF_BODYCONTENT and all I receive is the
following CFERROR:
=====
Error Diagnostic Information
Error resolving parameter REQUEST.BODYCONTENT
Cold Fusion was unable to determine the value of the
parameter. This problem is very likely due to the fact
that either:
You have misspelled the parameter name, or
You have not specified a QUERY attribute for a
CFOUTPUT, CFMAIL, or CFTABLE tag.
The error occurred while evaluating the expression:
#request.bodycontent#
The error occurred while processing an element with a
general identifier of (#request.bodycontent#),
occupying document position (14:19) to (14:39).
=====
The code I am using for index.cfm is:
<cfinclude template="../app_globals.cfm">
<cfparam name="attributes.fuseaction"
default="welcome">
<cfmodule template="bodycontent.cfm">
<cfswitch expression="#attributes.fuseaction#">
<cfcase value="welcome">
<cfinclude template="dsp_welcome.cfm">
</cfcase>
<cfdefaultcase>
<cfinclude template="dsp_welcome.cfm">
</cfdefaultcase>
</cfswitch>
</CFMODULE>
=======
The CF_BODYCONTENT code is from Nelson & Girard's book
as follows:
<cfif not thistag.HasEndTag>
<cfset thistag.generatedcontent="">
You must have an end Tag
<cfabort>
</cfif>
<cfparam name="request.headerfile" default="">
<cfparam name="request.footerfile" default="">
<cfparam name="attributes.showbody" default="yes">
<cfif len(request.headerfile)>
<cfinclude template="#request.headerfile#">
</cfif>
<cfif attributes.showbody>
<cfoutput>#request.bodycontent#</cfoutput>
</cfif>
<cfif len(request.footerfile)>
<cfinclude template="#request.footerfile#">
</cfif>
=======
I've defined the request parameters in as:
<cfset request.headerfile = "dsp_header.cfm">
<cfset request.footerfile = "dsp_footer.cfm">
<cfset request.bodycontent = "bodycontent.cfm">
any assistance would be greatly appreciated and restore
sanity.
John Townsend
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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