Hello im trying to mark as selected or not a select html box i want to compare each option with another string i add to my model in order to determine which is the selected option, the problem is i cant handle it to make it work, it keeps saying equal symbol expected
Here is my code:
<select name="version" onchange="document.forms['versionForm'].submit();">
<c:forEach var="conf" items="${hconfs}" varStatus="status">
<c:if test="${conf == 'versionUsed'}">
<option value="${conf}"><fmt:formatDate value="${conf}" pattern="dd/MM/yyyy hh:mm:ss a" selected/></option>
</c:if>
<c:if test="${conf != 'versionUsed'}">
<option value="${conf}"><fmt:formatDate value="${conf}" pattern="dd/MM/yyyy hh:mm:ss a"/></option>
</c:if>
</c:forEach>
</select>
This is the error i get
org.apache.jasper.JasperException: /WEB-INF/view/configuracion.jsp(86,104) equal symbol expected