Reputation: 601
I have the following code in my jsp -
c:if test="${serviceOutput.ok}">
<c:if test="${serviceOutput.ret.proposalsCount} > 0">
......
and printing ${serviceOutput.ret.proposalsCount} gives the following -
${serviceOutput.ret.proposalsCount}
--> 3
Which clearly means that proposalsCount value is 3 which is more than 0, but still in my original jsp, this conditional evaluates out to false.
Can anyone please help me out here.
Upvotes: 1
Views: 3358
Reputation: 1109665
The entire EL expression needs to go inside the brackets {}
.
<c:if test="${serviceOutput.ret.proposalsCount > 0}">
Upvotes: 2