I ran into a situation today where I wanted to create a request errorin ColdFusion MX 7, to test handling request errors. My problem: How do you generate a request error?
- Create a test.page with the code <cfset undefvar= undefvar/>
- In my application.cfc, create a <cferror /> tag and point it to error.cfm.
- In error.cfm add code <cfset undefvar= undefvar/>
And that should do it. Is there an easier way that I’m missing?