1. <cfinclude template="/path/to/functionlib.cfm" />
  2. <body>
  3. <form ...>
  4. <cfif arrayLen ( variables.errors ) gt 0>
  5. <div id="error">
  6. <p>Error:</p>
  7. <cfoutput>#showErrors ( variables.errors )#</cfoutput>
  8. </div>
  9. </cfif>
  10. ... form content ...
  11. </form>
  12. </body>