mardi 27 janvier 2015

How to compare string in JSTL c:if


<c:set var="name" value="${param.byName}"></c:set>
<c:out value="${name}"></c:out> // Here the value is displaying

<c:forEach var="viewlist1" items="${inwardList}">
<c:if test="${name eq viewlist1.vendor} ">
<c:out value="${viewlist1.vendor}"></c:out> // Here I am not getting
</c:if>
</c:forEach>


JSTL c:if is not comparing with String variables, can anyone help me in this.


Aucun commentaire:

Enregistrer un commentaire