<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>
用单引号括起来,你要比较的字符串即可。
<c:if test="${salary.sex =='女'}">
<label> <input type="radio" name="optionsRadios" id="optionsRadios1" value="男">男</label></c:if>
用单引号括起来,你要比较的字符串即可。