4
我試圖檢查列表是否包含特定元素或者在<s:if>
標記中使用Struts 2?如何檢查List是否包含Struts2中的特定元素?
<display:table class="noheader-border" id="data" name="lstAttendance" sort="list"
uid="row" htmlId="sources" export="false">
<display:column style="width:150px">
<s:property value="%{#attr.row.worker.workerName}" />
</display:column>
<display:column style="width:10px;weight:bold;">:</display:column>
<s:if test="lstSalaryDefinedWorkerId.contains(%{#attr.row.workerId})">
...
</s:if>
...