House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Search cf-talk

July 04, 2009

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Home /  Groups /  ColdFusion Talk (CF-Talk)

Application CFC onError function and the <cferror> tag

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ian Skinner
09/07/2006 05:04 PM

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.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Raymond Camden
09/07/2006 05:28 PM

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. ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists