The session is a List<Task> . I want to display a task object, then check the value of a certain attribute, and if it is equal to the specified value, then add the date field as well:
<c:forEach var="task" items="${sessionScope.tasks}"> <c:out value="${task}"/> <c:if test="${sessionScope.column eq Today}"> <c:out value="${task.date}"/> </c:if> <br> </c:forEach> Is there a more competent and concise record of such a decision? Thank!