I am trying to do a null string check, but this will not work.
<s:iterator value="matrix" var="row">
<tr>
<s:iterator value="value" var="col">
<td>
<s:if test="%{#col==null}">0</s:if>
<s:else><s:property value="col"/></s:else>
</td>
</s:iterator>
</tr>
</s:iterator>
is an
Map<Integer, List<String>>
var "col" is correctly assigned to a string value from the list.
The list may look like this: ["hello", null, "world"
Current output: hello world
Required output: hello 0 world
/Thanks in advance
source
share