<c:if test />来判定两个字符串是否相等

来源:互联网 发布:加工中心手动编程铣圆 编辑:程序博客网 时间:2024/06/16 02:15

<c:if test="${salary.sex =='女'}">

<label> <input type="radio" name="optionsRadios"id="optionsRadios1" value="男">男</label>
<label> <input type="radio" name="optionsRadios"id="optionsRadios2" value="女" checked>女</label>

</c:if>

用单引号括起来,你要比较的字符串即可。

0 0
原创粉丝点击