当前位置:编程学习 > 网站相关 >>

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>

补充:综合编程 , 其他综合 ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,