Reputation: 2907
I'm using this Code in my jsp:
<c:if test="<%=box.getPrefs().getBool("PrefOTPEnabled")%>">
<div class="ChOptPadd_r11 padd_t2">
<div class="link">
</div>
</div>
</c:if>
but I got a syntax error: Syntax error on token ";", Expression expected after this token
What is wrong with that?
Upvotes: 1
Views: 2240
Reputation: 2361
<% if (box.getPrefs().getBool("PrefOTPEnabled")){%>
<div class="ChOptPadd_r11 padd_t2">
<div class="link">
</div>
</div>
<%}%>
Upvotes: 0
Reputation: 2820
Because you have double quotes. It should be apostrophe in 'PrefOTPEnabled'.
<c:if test="<%=box.getPrefs().getBool('PrefOTPEnabled')%>">
<div class="ChOptPadd_r11 padd_t2">
<div class="link">
</div>
</div>
</c:if>
Upvotes: 1