House of Fusion
Home of the ColdFusion Community
Hostmysite VPS Hosting

Search cf-talk

August 20, 2008

<<   <   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             

Subscribe Now
Fusion Authority Quarterly Update - ColdFusion 8 Special Edition

For ColdFusion hosting try HostMySite.com.
Search over 2,500 ColdFusion resources here  >>>      
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 >> 

09/07/2006 05:04 PM
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.

09/07/2006 05:28 PM
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:


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

Mailing Lists