Error handling and Look and feel

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Error handling and Look and feel

    I'm developping an Error Handling Framewok and I try to display error message
    in the page has occured the exception (a form for example) without changing the
    look and feel (or for exaample displaying the error message above the form)!
    Is it possible using cferror and not cfcatch?
    If it is, please explain to me how!
    thx

    S@id+

    mix-tape developer Guest

  2. Similar Questions and Discussions

    1. Error handling
      In you provide labels or line numbers in your code, you can use ERL to get the most recent label/line number. Using line numbers does slow down...
    2. CF Error Handling
      I currently have no error handling with the website I am working with. I want to start integrating it in. The error I am most concerned about is...
    3. better error handling...?
      test guy wrote: Do a query on the record keys prior to inserting. If it is found, return to an error page/prior page with the information...
    4. Error handling and custom error messages
      How can I get more informations about last error? I get the last error number with @@ERROR, but I don't know what is the source of error. For...
    5. Error handling in SQL
      Hi. I came across following stored procedure. CREATE PROCEDURE . @iId int, @iErrorCode int OUTPUT AS
  3. #2

    Default Re: Error handling and Look and feel

    Please help me if you know!

    S@id+
    mix-tape developer Guest

  4. #3

    Default Re: Error handling and Look and feel

    You are going about this entirely the wrong way. You do not really need to use
    cferror or cfcatch.

    cferror is to help maintain your application when an unexpected error occurs.
    And cftry and catch are mainly used to cope with stuff that might not always
    work.

    To handle form validation, you should post the form to the submitting page.
    Use cfparam to set defaults for the form varaibles. I normally use a hidden
    form field to represent if the form has been submitted. Then check each field
    for your chosen provisos. ie is it a valid email address, is it too long or too
    short.

    Sadly form validation is unavoidable in this business and you should be able
    to find countless tutorials on it if you search the internet.

    HTH

    Stressed_Simon Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139