<cfcontent
type = "text/html"
file = "C:\CFusionMX\wwwroot\myapps\cfcontent_message.htm"
deleteFile = "No">
</body>
</html>
If necessary, edit the
4
Save the file as cfcontent.cfm in the myapps directory under your web_root and view it in the
5
browser.
The text of the called file (cfcontent_message.htm) displays as normal HTML, as shown in the
following figure:
In cfcontent.cfm, change
6
Save the file and view it in the browser (refresh it if necessary).
7
The text displays as unformatted text, in which HTML tags are treated as text:
The following example shows how the cfcontent tag can create an Excel spreadsheet that contains
your data.
line to point to your myapps directory.
file =
type = "text/html"
to
type = "text/plain"
.
Using cfcontent
831
Need help?
Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?
Questions and answers