${new} will cause error in old tomcat 7

Below code has error, because the ${new} will crash old tomcat 7. JSTL has bug.

<c:forEach var="new" items="${news}">
	<tr style="padding-top:10px;">
		<td><fmt:formatDate pattern="yyyy-MM-dd h:m" value="${new.publishedDate}" /></td>
	</tr>
	<tr>
		<td style="border-bottom: 1px solid #dfdfdf; padding-bottom:10px;"><a href="${new.link}" target="_blank">${new.title }</a></td>
	</tr>
</c:forEach>

Leave a Reply

Your email address will not be published. Required fields are marked *