<c:if test="${netWorkInfo.networkType eq '快修店'}"> <input type="radio" name="networkType" id="networkType" value="快修店" checked="checked"/>快修店 <input type="radio" name="networkType" id="networkType" value="快修连锁店"/>快修连锁店 <input type="radio" name="networkType" id="networkType" value="4S"/>4S </c:if> <c:if test="${netWorkInfo.networkType eq '快修连锁店'}"> <input type="radio" name="networkType" id="networkType" value="快修店"/>快修店 <input type="radio" name="networkType" id="networkType" value="快修连锁店" checked="checked"/>快修连锁店 <input type="radio" name="networkType" id="networkType" value="4S"/>4S </c:if> <c:if test="${netWorkInfo.networkType eq '4S'}"> <input type="radio" name="networkType" id="networkType" value="快修店"/>快修店 <input type="radio" name="networkType" id="networkType" value="快修连锁店"/>快修连锁店 <input type="radio" name="networkType" id="networkType" value="4S" checked="checked"/>4S </c:if>
说明:
String a="111";
String b="111";
< c:if test="${b eq a}"></c:if> 使用eq比较相等,字符串用'',判断语句条件在${}中。