I have following jsp fragment:
<td class="">${campaign.moderated}
<c:if test="${campaign.moderated} == TRUE">
<a href="#">click me</a>
</c:if>
</td>
Campaign class:
public class Campaign {
//...
private ModerationStatus moderated;
//get and set
}
ModerationStatus :
public enum ModerationStatus {
TRUE,
FALSE,
IN_PROGRESS
}
I cannot achieve the situation when a tag will render on jsp.
what Do I wrong?
P.S.
This table cell looks like this:

this works:
<c:if test="${campaign.moderated eq 'TRUE'}">
<a href="#">click me</a>
</c:if>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With