我正在使用Spring Roo。有table:table
和table:column
标签。
<table:table data="${memberDetails}" id="memberDetail" delete="false"
create="false"
update="false" show="false" paginationFlag="false"
path="" typeIdFieldName="instanceId"
z="40I0ZgJoR5iBRXkYGHvl959736E=">
<table:column id="customer" property="user.name"/>
</table:table>
如果属性null
不为空,我如何检查user.name
或为空?如果它是空的我想在那里解决其他财产。
检查此代码
<c:if test="${user.name =='null'}" >
<table:column id="customer" property="user.name"/>
</c:if>
或者你可以使用
<c:if test="${not empty user.name}">
<table:column id="customer" property="user.name"/>
</c:if>