Thanks Ian, that helped. I found that using cferror doesn't allow me to use my normal site template, so since I'm using application.cfc, I used the onError method. This is what I did, and it allowed me to use my normal site template:
<cffunction name="onError" output="true"> <cfargument name="exception" required=true/> <cfargument name="eventName" type="String" required=true/> <!--- Log all errors. ---> <!--- Display an error message if there is a page context. ---> <cfif (trim(arguments.eventName) IS NOT "onSessionEnd") AND (trim(arguments.eventName) IS NOT "onApplicationEnd")> <cflog file="#this.name#" type="error" text="Event name: #arguments.eventName#" > <cflog file="#this.name#" type="error" text="Message: #arguments.exception.message#"> <cfif arguments.exception.stackTrace CONTAINS "FormValidationException"> <cfset request.page.title = "Form validation error"> <cfsavecontent variable="errorcontent"> <p class="action-response">A form validation error has occurred.</p> <ul> <cfoutput>#arguments.exception.errors#</cfoutput> </ul> <p class="action-response">Please <a href="javascript:history.go(-1);">go back</a> and correct the problems.</p> </cfsavecontent> <cfelse> <cfset request.page.title = "An unexpected error has occurred"> <cfsavecontent variable="errorcontent"> <p class="action-response">Please provide the following information to technical support:</p> <p class="action-response">Error Event: #arguments.eventName#</p> <p class="action-response">Error details:</p> </cfsavecontent> </cfif> <cfimport taglib="/extensions/customtags/" prefix="ct"> <cfoutput> <ct:uitemplate> #errorcontent# <cfif CGI.server_name CONTAINS "localhost"> <cfdump var="#arguments.exception#" label="Error details" expand="no"> </cfif> </ct:uitemplate> </cfoutput> <cfelseif (arguments.eventName IS "onApplicationEnd")> <cflog file="#this.name#" type="Information" text="Application #this.name# Ended" > </cfif> </cffunction> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272028 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4