how to use c:when condition inside value attribute of input tag?
<input id="textid" type="button" value="">
in the ‘value’. what I want is
<c:when test="${texttest == 'Y'}"> Add </c:when>
<c:otherwise> Edit </c:otherwise>
Value should be ‘Add’ if textest is ‘Y’ otherwise ‘Edit’
1 Answer