You can't do a forward() out of your current webroot.  It has to be a
valid URL (not file, mind you) that's in the same application context.
 So that was bound to fail anyway.

But the CFINCLUDE should work, since you're not switching drives or
anything.  You try stepping down the path to the template with
expandPath and file/directoryExists to see if you can confirm/deny
that nothing weird is happening?

cheers,
barneyb

On 12/21/05, Matt Robertson <[EMAIL PROTECTED]> wrote:
> On 12/21/05, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote:
> > Instead of using CFHTTP or CFINCLUDE, have you tried doing a server-side
> > forward?
>
> I got exactly the same error.  This has got to have something to do
> with the two different web roots.  Either that or I am doing something
> really dumb.  I'll write it out again:
>
> site wide error handler is located at
>
> c:\cfusionmx\wwwroot\handler.cfm
>
> the file I want to call is at
>
> c:\web\mysite\subfolder\include.cfm
>
> I plugged this into the error handler:
>
> <cfscript>
> getPageContext().forward "../../web/mysite/subfolder/include.cfm");
> </cfscript>
>
> Result was a cf file not found error
>
> BAH!
>
> --
--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227472
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to