【问题标题】:Execute ColdFusion Tags执行 ColdFusion 标签
【发布时间】:2017-09-25 08:42:07
【问题描述】:

我在 ColdFusion 处于学习阶段。现在我正在尝试使用<cfset><cfoutput> 标签执行下面的代码以显示变量内容。我完成了服务器安装,并且可以使用管理员凭据登录服务器。但它作为普通的 html 页面执行,没有从 ColdFusion 标签中获取结果。

除此之外我还需要安装什么吗?

<!DOCTYPE html>
<html>
body>
<body background="download.jpg">
<cfset name ="swanav"/>
<cfoutput>#name#</cfoutput>
</body>
</html>

标签: coldfusion


【解决方案1】:

对您的代码的一个小修正,

<!DOCTYPE html>
<html>

<body background="download.jpg">
  <cfset name="swanav" />
  <cfoutput>#name#</cfoutput>
</body>

</html>

代码需要放入, /cfusion/wwwroot

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-03
    • 1970-01-01
    • 1970-01-01
    • 2011-05-14
    • 2016-05-30
    • 2011-04-06
    相关资源
    最近更新 更多