<c:foreach>遍历map 出现According to TLD or attribute directive in tag file, attribute items does not accept any expressions

<c:foreach>遍历map 出现According to TLD or attribute directive in tag file, attribute items does not accept any expressions

 

出现这个错误多是由于您没有正确导入jstl包导致的

导入jstl的uri应该是这个 http://java.sun.com/jstl/core_rt

如以下代码

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

 


爆款云服务器s6 2核4G 低至0.46/天,具体规则查看活动详情Blog Img