<input type="text" name="${task.getTaskId()}today" placeholder="${tm.get(LocalDate.now()).contains(task.getTaskId()) ? 'saved' : 'dosa'}" size="2">
This is my code situated inside a <c:forEach items="${tasks}" var="task" >
.
tm is a HashMap<LocalDate,List<String>>
I tried the same code in a java file it works. But in jsp it doesn't. I always get dosa
which implies the condition is false. Why is this ?