It should just worked. I just dropped this into a folder:

component {

   public boolean function onMissingTemplate(String targetPage) {
      include "404.cfm";
      return true;
   }

}

I then made a 404.cfm file that said "Hello". I then went to a CFM in
this folder that did NOT exist and I got the Hello message.

On Sat, Oct 20, 2012 at 2:30 PM, John Barrett <[email protected]> wrote:
>
> Hi ray, thanks for the comment!
> I thought that I was using the function for when you request a missing
> template(404 error)
> I did try going to hsdshkdskhdkshdkshd.cfm, but the default ColdFusion
> page not found came up, and I am trying to use the style of the website
> for this.
>
> Yes I actually do have a 404.cfm page on the server, this is wrong?
> Should I call the page cferror.cfm or something
> How should I be doing this?
>
> thanks!
>
> confused,
> Johnny
>
>> Raymond Camden <mailto:[email protected]>
>> October 20, 2012 3:01 PM
>> To be clear, this is for when you request a missing template, _not_ an
>> error. (Ok, a missing template is a kind of error.)
>>
>> Did you try going to /kjdfjkljkdksj.cfm to see if it works?
>>
>> Btw - if you actually have a file with that name, you're doing it wrong.
>>
>>
>
> 

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

Reply via email to