struts2标签s:if test的比较
test中比较的字符串:
<td align="center">
<s:if test='#obj.stateFlag=="Y"'><span class="green">已缴</span></s:if>
<s:else><span class="red">未缴</span></s:else>
</td>
test中比较的数字:
<td align="center">
<s:if test="%{smState == 2}"><span class="green">成功</span></s:if>
<s:else><span class="red">失败</span></s:else>
</td>
补充:综合编程 , 其他综合 ,