${new} will cause error in old tomcat 7

${new} will cause error in old tomcat 7

2014/11/14 Programming 0

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>