cfoutput 不抛出任何结果

发布于 2024-09-12 09:38:17 字数 1090 浏览 2 评论 0原文

您好,我有一个包含 getter 和 setter 的组件,它由会话变量的结构提供。 当我调用该组件并为该 getter 和 setter 使用 cfoutput 标记时,输出给出的结果是乱码。

cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_ADDRESS_ZIP_CODE@6187548c     cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_FLAGS@7bbfe559 
   cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_FLAGS@7bbfe559 
cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_RECORD_NUMBER@736a7587 
cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_RECORD_NUMBER@736a7587 
cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_ADDRESS_ZIP_CODE@6187548c 
cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_ADDRESS_ZIP_CODE@6187548c 
cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_WEIGHT@524a2d43 
cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_WEIGHT@524a2d43 
cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETVIN@3e1b3ea

当我对传递的变量值执行 CTRL+F 时,我在下面的 ColdFusion 调试信息中找到它们。
我想获得必要的 cfoutput 值,这是我之前根据需要获得的。

Hi I have a component that contains getters and setters, which is fed by a structure for session variables.
When I call the component and use cfoutput tag for that getter and setter the output is giving gibberish as results.

cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_ADDRESS_ZIP_CODE@6187548c     cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_FLAGS@7bbfe559 
   cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_FLAGS@7bbfe559 
cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_RECORD_NUMBER@736a7587 
cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_RECORD_NUMBER@736a7587 
cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_ADDRESS_ZIP_CODE@6187548c 
cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_ADDRESS_ZIP_CODE@6187548c 
cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_WEIGHT@524a2d43 
cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETCUSTOMER_WEIGHT@524a2d43 
cffunctions_allDefinedSessnFunct2ecfc3324199482$funcGETVIN@3e1b3ea

When I do a CTRL+F for the variable values passed, I find them below in the ColdFusion Debugging Information.
I want to get the requisite cfoutput values, which i was getting as desired previously .

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

悲喜皆因你 2024-09-19 09:38:17

从所有方面来看,我想说您正在输出组件本身而不是它的字符串属性之一。检查你的输出代码。

by all accounts I'd say you're outputting the component itself instead of one of its string properties. Check your output code.

吻泪 2024-09-19 09:38:17

你在做这个吗?

<cfset allDSF = createObject("component", cfc.allDefinedSessnFunct") />
<cfoutput>#allDSF.getCUSTOMER_ADDRESS_ZIP_CODE()#</cfoutput>

一些代码可以帮助我们帮助您......

Are you doing this?

<cfset allDSF = createObject("component", cfc.allDefinedSessnFunct") />
<cfoutput>#allDSF.getCUSTOMER_ADDRESS_ZIP_CODE()#</cfoutput>

Some code would help us to help you...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文