I want to select value selected if condition match c:choose options. I have used bellow hidden input value to compare in c:when test=
<input type="hidden" class="form-control" id="dialog_uomid" name="dialog_uomid" />
I have used bellow code in dropdown.
<select class="form-control" id="uomid" name="uomid" path="uomid">
<option data-tokens="ketchup mustard" value="">--Select Options--</option>
<c:forEach var="item" items="${uomList}">
<c:choose>
<c:when test="${item.softcode == '${#dialog_uomid}'}">
<option selected="selected" data-tokens="ketchup mustard"
value="${item.softcode}">${item.codDes}</option>
</c:when>
<c:otherwise>
<option data-tokens="ketchup mustard"
value="${item.softcode}">${item.codDes}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
Comparing bellow code is not working..
<c:when test="${item.softcode == '${#dialog_uomid}'}"
Can you help me to solve the problem dialog_uomid to item.softcode?