use c:choose instead of c:if to prevent duplication of the test