Hi everyone,
I hope someone is able to help me with this problem.
I have an JSP that loops through a ArrayList and displays the information. One of the fields have a Date() attribute. I want to call a DateUtil function to format the date.
<c:forEach var="entry" items="${donation.logs}">
<tr>
<td><%= dateUtils.formatDate(${entry.receivedTimestamp})%></td>
<td>$<c:out value="${entry.donation}"/></td>
</tr>
</c:forEach>
So basically i want to pass the "${entry.receivedTimestamp}" to the "dateUtils.formatDate()" function.
How is this done? Is there a better way to do this? Any ideas and help is very welcome!
Thanks in advance
Kasper