Mark,

That may be true, and I do not have enough OO experience to answer if this is a 
good method or not.  But I am trying to use CFC's as a common, reusable action 
for forms.  The documentation says that if you have a form that calls the cfc 
in it's action attribute and has a hidden field that names the method to call, 
that is what will be used to process the form.

<form action="myFormAction.cfc....>
        <input type="hidden" name="method" value="theMethod"...>

This actually sends the browser to the CFC; to go someplace afterwards, one has 
to have a <cflocation...> in the method.  This particular use of a CFC does not 
utilize <cfreturn aValue>.  So, if one wants to have access to any data created 
in the cfc, it needs to be stored in a persistent location.

This seems to work just as expected if the CFC in question is in the directory 
structure of the website.  But, if it is indirectly in the directory sturcture 
vis-a-vie a virtural directory, the behaviour changes.  

I would guess this my be a more procedural way to use CFC's, but that should be 
alright.  My question is, is there some logical reason I'm not aware of that 
there is a difference if the Action.CFC file is in the website directly or 
indirectly?

--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

"C code. C code run. Run code run. Please!"
- Cynthia Dunning



Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at 
[EMAIL PROTECTED]

Reply via email to