<c:if test="${not empty userList)}">
<table cellpadding="5">
<tr class="even">
<th>Name</th>
<th>Gender</th>
<th>Country</th>
<th>About You</th>
</tr>
<c:forEach items="${userList}" var="user" varStatus="status">
<tr class="<c:if test="${status.count % 2 == 0}">even</c:if>">
<td>${user.name}</td>
<td>${user.gender}</td>
<td>${user.country}</td>
<td>${user.aboutYou}</td>
</tr>
</c:forEach>
</table>
</c:if>
When i remove <c:if test="${not empty userList)}"></c:if> it throws me error.
What does this condition check? My DB tables has users list, but yet this entire code is not displayed in my HTML itself.
that line is equivalent to