I am trying to serve pages using both onMissingTemplate and a custom 404
page.

This works:
domain.com/not-there/index.cfm

It seems to properly be using the onMissingTemplate method.

This does not:
domain.com/not-there/

>From the debug, I can see that:

CGI.SCRIPT_NAME=/404.cfm

However, in the execution time, the template does not show:
*Execution Time*

 *Total Time* *Avg Time**Count* *Template*0 ms 0 ms1 CFC[
\\awesome-pc\inetpub\wwwroot\domain_com\Application.cfc |
onRequest(/404.cfm) ] from
\\awesome-pc\inetpub\wwwroot\domain_com\Application.cfc 0 ms0 ms 1CFC[
\\awesome-pc\inetpub\wwwroot\domain_com\Application.cfc |
onRequestStart(/404.cfm) ] from
\\awesome-pc\inetpub\wwwroot\domain_com\Application.cfc *5 ms*  *STARTUP,
PARSING, COMPILING, LOADING, & SHUTDOWN* *5 ms* *TOTAL EXECUTION TIME*

At this point, I am just trying to display the output "404 called".  I have
made sure it is within cfoutput tags, and verified that <cfsetting
enablecfoutputonly="no"> is set under onRequestStart.

Not sure what is going on.

As I stated in my other post, I am just transitioning to Application.cfc, so
I am sure it has to do with that.  404.cfm was working properly with
Application.cfm.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336164
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to