I am implementing paging support using custom tag. I decided to use JSP-based tag because there is more formatting than any heavy logic. But this is not the main story. The trouble is that JSTL forEach simply doesn't work at my .tag file and throws java.lang.NoSuchFieldError: deferredExpression .Even this code is throwing exception when I'm using my tag at JSP:
<%@tag description="paging support for employee" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div>
<div>
<c:forEach var="i" begin="1" end="20" step="1" varStatus ="status">
<c:out value="${i}" />
</c:forEach>
</div>
</div>
Also in my previous project i met this exception while was mixing together struts tags and forEach tag in a single JSP. I couldn't find out what was it, but handled it through replacing forEach by similar struts tag iterate. But this time I need exactly forEach because of it's attribute "step". Any ideas ?