Might it be that your page-not-found.cfm is located at a directory level
other than where your code live? In which case it may not benefit from the
application.cfm you'd have there, which is doing the CFAPPLICATION tag that
enables the application scope?

If that's the case, either move the page-not-found.cfm into the same
directory as code you expect to have those variables or put a CFAPPLICATION
with the same NAME into the page-not-found.cfm or an application.cfm in its
directory or parent. Hope that helps.

/charlie

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mischa
Uppelschoten ext 10
Sent: Friday, May 05, 2006 2:26 PM
To: [email protected]
Subject: [ACFUG Discuss] Missing template handler does not have access to
application scope?

Trying to get "page-not-found.cfm" as a missing template handler to work in
CFMX7.

When I request a non existing cfm page foo.cfm this code in
page-not-found.cfm is executed fine:

<cfset request.txt="Page not found">
<cfoutput>
 #request.txt#
</cfoutput>

This does not work fine:

<cfset request.txt="Page not found">
<cfoutput>
 #request.txt#
</cfoutput>
<cfdump var="#application#">


CF will display the text "Page not found" in the browser, but will then
generate the default "Error Occurred While Processing Request", complaining
that the foo.cfm file could not be found. I rely on my application variables
for displaying my standard site layout, so at this moment I'm unable to
properly format a page not found error. Any suggestions?
Thanks!
Mischa.


--------------------------------------------------------
* To unsubscribe from this list, manage your profile @ *
* http://www.acfug.org?fa=gin.edituserform           *
*                                                      *
* For more info, see http://www.acfug.org/mailinglists *
--------------------------------------------------------




--------------------------------------------------------
* To unsubscribe from this list, manage your profile @ *
* http://www.acfug.org?fa=login.edituserform           *
*                                                      *
* For more info, see http://www.acfug.org/mailinglists *
--------------------------------------------------------


Reply via email to