OK, I've got a way of doing it but I reckon there must be a better way as I 
think it will gobble up resources

page.cfm
[code]
<html>
<head>
<title>Hello</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<body>
<cfset myvar = 'hello world'>
<cfoutput>#myvar#</cfoutput>
</body>
</html>
[/code]

onRequestEnd.cfm/onRequestEnd method in App cfc
[code]
<cfset pageoutput = getPageContext().getCFOutput().getString()>
<cfcontent reset="yes">
<!-- Use as proof that not original output from page.cfm -->
<cfoutput>#pageoutput#</cfoutput>
<!-- Use as proof that not original output from page.cfm -->
[/code]

What are peoples thoughts on this?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277619
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to