I have a standard Fusebox app (v2), but for some
reason, bodycontent.cfm is getting run twice!

When I view source, I see bodycontent.cfm listed
twice.

Have been racking my brain now for 2 days trying to
figure out why and cannot seem to find a solution! Any
help would be appreciated as I know this is probably a
fairly simple solution...

here is my index.cfm

<cfinclude template="app_local.cfm" />
<cfparam name="attributes.fa" default="IUform" />

<cftry>
        <cfmodule
template="#variables.webpath##application.commonfiles.customtagspath#bodycontent.cfm">
                <cfswitch expression="#attributes.fa#">
                
                        <cfcase value="IUform">
                                <cfset variables.pagetitle="Image Uploader" />
                                <cfset xfa.submit="IUsubmit" />
                                <cfinclude template="jsf_Submitcheck.cfm" />
                                <cfinclude
template="#variables.webpath##application.commonfiles.qrypath#qry_IUcategories.cfm"
/>
                                <cfinclude template="dis_IUform.cfm" />
                        </cfcase>
                        
                        <cfcase value="IUsubmit">
                                <cfset variables.errormessage="" />
                                <cfinclude template="err_IUreferercheck.cfm" />
                                <cfinclude template="err_IUdatacheck.cfm" />
                                <cfinclude template="act_IUimageupload.cfm" />
                                <cfinclude template="act_IUdatainsert.cfm" />
                                <cfif len(variables.errormessage)>
                                        <cfset variables.pagetitle="Image Uploader -
Error!" />
                                        <cfset xfa.submit="IUsubmit" />
                                        <cfinclude template="jsf_Submitcheck.cfm" />
                                        <cfinclude
template="#variables.webpath##application.commonfiles.qrypath#qry_IUcategories.cfm"
/>
                                        <cfinclude template="dis_IUform.cfm" />
                                <cfelse>
                                        <cflocation
url="#request.self#?fa=IUconfirmthanks&#session.urltoken#"
/>
                                </cfif>
                        </cfcase>

                        <cfcase value="IUconfirmthanks">
                                <cfset variables.pagetitle="Image Uploader - Thank
You!" />
                                <cfset xfa.newfile="IUform">
                                <cfinclude template="dis_IUconfirmthanks.cfm" />
                        </cfcase>

                        <cfdefaultcase>
                                <!--- trying to hack or have messed with the URL,
display error message --->
                                <cfset variables.pagetitle="Image Uploader -
Error!" />
                                <cfinclude
template="#variables.webpath##application.commonfiles.actpath#act_error.cfm"
/>
                                <cfinclude
template="#variables.webpath##application.commonfiles.dispath#dis_error.cfm"
/>
                        </cfdefaultcase>
                
                </cfswitch>
        </cfmodule>
<cfcatch type="any">
  <!--- display friendly error message --->
        <cfset variables.pagetitle="Image Uploader - Error!"
/>
  <cfinclude
template="#variables.webpath##application.commonfiles.actpath#act_error.cfm"
/>
  <cfmodule
template="#variables.webpath##application.commonfiles.customtagspath#bodycontent.cfm">
        <cfinclude
template="#variables.webpath##application.commonfiles.dispath#dis_error.cfm"
/>
  </cfmodule>
</cfcatch>
</cftry>
<cfinclude
template="#variables.webpath##application.commonfiles.customtagspath#app_layout.cfm"
/>

TIA,

Nate

=====
----------------------------
Nathan Shaw
Web Applications Developer
iaffect
http://www.iaffectonline.com
http://www.iaffectTV.com
----------------------------


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com

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

Reply via email to