【发布时间】:2015-02-09 12:32:19
【问题描述】:
大家好,我是新的 Adobe CQ5,我正在从 Adobe CQ5 组件中的 JCR 获取值,值呈现正常但现在想检查 null,我正在这样做:
<% if(<%= properties.get("videoImage") %> != null)
{
<img src=<%= properties.get("videoImage") %> />
}
%>
但它会产生一个错误,任何人都可以建议我做错了什么。
【问题讨论】:
-
如何初始化
properties对象? -
我在 CRX 中将此名称声明为属性,我很好,但在检查 null 时遇到问题
标签: jsp adobe components aem jcr