I run some metric updating code in onRequestEnd. In certain cases, I want to
show a message if the metric update fails. I want to replace what is already
in the output buffer. I am trying this in onRequest end:
cfset pageContent = getPageContext().getOut().getString()
cfset
I have run into a similar issue before.
The buffer will empty itself to the client when it reaches a certain
point (can anyone clarify what that would be?).
The only way I have found around it is to save the content, and only
output on the success condition.
I had this issue when I mistakenly
I run some metric updating code in onRequestEnd. In certain cases, I want to
show a message if the metric update fails. I want to replace what is already
in the output buffer. I am trying this in onRequest end:
cfset pageContent = getPageContext().getOut().getString()
cfset
I had this issue when I mistakenly assumed that anything inside a try
would not be output if any error was thrown and we landed in the
catch. This is clearly not the case.
That's the expected result with exception handling - it doesn't roll
back what's already been done, so if you managed to
4 matches
Mail list logo