Good catch, Peter. There are some other gotchas to be aware of, as well, which 
I outlined in the article. Some of them
are general (and even apply to doing forwards in ASP or JSP), while some of 
them could well be different in 6.1 or 7 (or
7.01). So the overall warning about them is a good one. Still, I hope, Ben, 
that it helped you see that you can indeed
do server-side transfers of control in CFML. :-)

Charlie Arehart
CTO, New Atlanta Communications, makers of BlueDragon
(678) 256-5395 [EMAIL PROTECTED]
www.newatlanta.com/bluedragon/

 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Peter J. Farrell
> Sent: Tuesday, December 13, 2005 1:18 PM
> To: [email protected]
> Subject: Re: [CFCDev] MVC exploration questions
> 
> Charlie Arehart wrote:
> 
> >Ben, it seems what you're looking for is the equivalent of a server 
> >transfer in CFML. That is enabled in CFMX by way of 
> >getpagecontext().forward("yourtemplate.cfm"). Yes, it's an 
> odd looking 
> >beast. The getpagecontext() function returns an object with 
> several methods, one of which is a forward, which does the 
> server side transfer you seek. I wrote about this in a June 
> 2002 CFDJ article, back when it came out in CFMX 6.0:
> >
> >New Possibility in CFMX: Server-Side Redirects
> >http://www.sys-con.com/story/?storyid=41768&DE=1
> >  
> >
> Be very wary of using forward(), see my blog entry regarding 
> a BIG change in behavior between CFMX6.1 and CFMX7 (then 
> blackstone when
> tested) in how forward() is implemented.  It appears that 
> CFMX7 actually fixed a 6.1 bug in forward(), but since the 
> behavior is so different in
> 6.1 -- you may a hard time migrating an application you wrote 
> on 6.1 to
> 7 or vice-versa.
> 
> http://blog.maestropublishing.com/index.cfm?mode=entry&entry=0
> 0DBE0F7-FE1A-2E74-2397A3E4CF5CD401
> 
> Best,
> .Peter
> 
> --
> Peter J. Farrell :: Maestro Publishing
> http://blog.maestropublishing.com
> 
> Rooibos Generator - Version 2.1
> Create boilerplate beans and transfer objects for ColdFusion for free!
> http://rooibos.maestropublishing.com/
> 
> - Member Team Mach-II
> - Member Team Fusion!
> 
> 
> 
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email 
> to [email protected] with the words 'unsubscribe cfcdev' as 
> the subject of the email.
> 
> CFCDev is run by CFCZone (www.cfczone.org) and supported by 
> CFXHosting (www.cfxhosting.com).
> 
> An archive of the CFCDev list is available at 
> www.mail-archive.com/[email protected]
> 
> 
> 



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to