Peter H wrote:
Hi Anthony,
When I was looking into validation using coldfusion, I found many
references to using cfinlcudes but couldn't find an example of it
anywhere.
The approach used here came about simply because I couldn't think of a
better way to cleanly seperate the form itself from the validation.
Theres bound to be advantages and disadvantages to both so If you have
an example of using cfincludes for validation could you post it for me.
Any body else have views on this?
Cheers, Pete (aka lad4bear)
Hi Pete,
Just wanted to clear up a few things. I should point out that
getPageContext.forward() is a server-side re-direct. It's similar to
cflocation however that is a client-side redirect - via a 302 http
header if I remember correctly. I should point out that is a bug in how
CF MX6.1 and MX7 process getPageContext.forward(). I blogged the entry
last February:
http://blog.maestropublishing.com/index.cfm?mode=entry&entry=00DBE0F7-FE1A-2E74-2397A3E4CF5CD401
<http://blog.maestropublishing.com/index.cfm?mode=entry&entry=00DBE0F7-FE1A-2E74-2397A3E4CF5CD401>
Secondly, there was a discussion of the Mach-II mailing list back in
February about some possible overhead problems when using forward()
versus cflocation. cannot confirm any problems with forward(), but it's
worth considering searching the any list archives.
Honestly, I've go along the route that Rolland describes. However, if
you are trying to do MVC - you might be interested in the Mach-II,
Fusebox or Model Glue frameworks.
Best,
.Peter
--
Peter J. Farrell :: Maestro Publishing
blog :: http://blog.maestropublishing.com
email :: [EMAIL PROTECTED]
Create boilerplate beans!
Check out the Mach-II Bean Creator - free download.
http://blog.maestropublishing.com/mach-ii_beaner.htm
I've learned that artificial intelligence is no match for natural stupidity.
--
----------------------------------------------------------
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).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]