Replace <c:if> with scriptlet, because it is not working