Adobe ColdFusion 8

Displaying output

If you do not specifically suppress output, any text, HTML code, or output that CFML tags generate inside your method gets returned as generated output to the client that calls the component method. If the client is a web browser, it displays these results. For example, the following getLocalTime1 component method shows the local time directly on the page that invokes the method:

<cfcomponent>
    <cffunction name="getLocalTime1">
        <cfoutput>#TimeFormat(now())#</cfoutput>
    </cffunction>
</cfcomponent>

Component methods that are called by using Flash Remoting or as web services cannot use this method to provide results.