中的條件我正在使用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
是不是空的?如果它是空的,我希望在那裏解決其他財產。
嘗試'$ {不是空user.name? user.name:'Bob'}' – Florent
Florent非常感謝您的回覆。我嘗試了你的建議,但那沒有奏效。 –