EL表达式错误jsp.JspTagException

异常:

javax.servlet.jsp.JspTagException:
1、 Don't know how to iterate over supplied "items" in <forEach>
2、Illegal use of <when>-style tag without <choose> as its direct parent

解决:
1、

1)是传值问题,传的不是集合,所以不能遍历

2)items传的值是关键字,jstl不能识别,如${resources}

2、

1)将<c:when></c:when>换成<c:if>

2)利用struts2中的s标签中的<s:if>

 

posted @ 2017-07-27 17:17  小闲石  阅读(261)  评论(0编辑  收藏  举报