I am trying string comparison with
<c:if test="${dept eq 'account'}"></c:if>
But this always returns false
. I check the dept variable had the value 'account'
. I also tried like this
<c:if test="${dept == 'account'}"></c:if>
This also returns false
.
But if I use the java code like this then it works fine
<%
if(dept.equals("account")){
blah blah blah
}
%>
Any help would be really appreciated.
Thanks