您的位置:首页 > Web前端 > JavaScript

JSP "items" does not support runtime expressions

2012-12-27 00:07 1236 查看
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:forEach var="datatables" items="${ds}">
<tr>
<td>${datatables.engine}</td>
<td>${datatables.browser}</td>
<td>${datatables.platform}</td>
<td>${datatables.version}</td>
<td>${datatables.grade}</td>
</tr>
</c:forEach>

In my JSP page, I import JSTL taglib like above, but it gives me the error that "items" does not support runtime expressions. The reason is previous
taglib directive imports a JSTL 1.0 taglib. It should be JSTL 1.1 instead (note the difference in URI):


Solution: Change to the taglib

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>


Make sure you've imported jstl.jar in your project.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐