Neil:

>From the CF Documentation:

--------------------------------------------
To set up the missing template Handler:

In the ColdFusion Administrator, click Settings.
The system displays the Server Settings page.

Specify the absolute path the server uses to find the missing templat
e
handler template. For example:
[NT] C:\Inetpub\wwwroot\MissingTemplateHandler1.cfm
[UNIX] /docroot/MissingTemplateHandler1.cfm

Click Apply.

Note
If you configured the IIS custom 404 error pages for .cfm files, you 
must
disable that option so that ColdFusion Server can process requests an
d
invoke the missing template Handler and Site-Wide Error Handler templ
ates
when necessary.
--------------------------------------------

In your missing template handler file you can do this to get the file
name
the user went to originally:

#GetFileFromPath(CGI.CF_TEMPLATE_PATH)#

I might be wrong, but I think this is the best way to go about it sin
ce it's
platform independent, since I'm pretty sure the cgi variable
CF_TEMPLATE_PATH is always available since it is create by the CF eng
ine.

Andy

> -----Original Message-----
> From: Neil H. [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 10, 2002 2:35 PM
> To: CF-Talk
> Subject: Help Quick!
>
>
> I am trying to determine when a page doesn't exist by using the
> missing page
> handler in CF.  How do I determine what the actual page is?
>
> Thanks,
>
> Neil
>
> ___________________________________________________________________
___
> Dedicated Windows 2000 Server
>   PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
>   Instant Activation � $99/Month � Free Setup
>   http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to