How to compare the strings in JSP EL. I tried to do
<select name="groupa" style="width: 170px">
<option value ="-1">no group</option>
<c:forEach var="gr" items="${sessionScope['entrantsAcceptor'].groups}">
<option value="${gr.idGroup}" <c:if test="${gr.code == param.group}">checked</c:if> >${gr.code}</option>
</c:forEach>
</select>
But it doesn't work(there are no any checked
in options of select(though I pass correct argument)). Also I have tried to do
${gr.code eq param.group}
but it also has no effect