August 20, 2008
For ColdFusion hosting try HostMySite.com. |
Home /
Groups /
ColdFusion Talk (CF-Talk)
Application CFC onError function and the <cferror> tag
I'm building my first real word application using the Application.cfc framework. I have an onErrorIan Skinner 09/07/06 05:04 P I've never used cferror for form checking. You wouldn't think itRaymond Camden 09/07/06 05:28 P
Author: Ian Skinner
I'm building my first real word application using the Application.cfc framework. I have an onError function built that dumps the error structure to a file and displays that file. This works well for my development. Now I want to build a custom error page for displaying user form validation errors. In the past I would have done this with a <cferror type="validation"...> tag. How do I combine these two error handling strategies? Where would I put a <cferror...> tag in the application.cfc framework? Or do I handle this in the onError function somehow? Guidance would be appreciated before I start blind trial and error development. Thank You -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA --------- | 1 | | --------- Binary Soduko | | | --------- "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.
Author: Raymond Camden
I've never used cferror for form checking. You wouldn't think it better to handle the form checking in the same file as the form? Thats just my opinion. Anyway - if you use onError, you can check the exception type. It should contain the information there if I had to guess. On 9/7/06, Ian Skinner <ian.skinner@bloodsource.org> wrote:
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||