首页 > 编程语言 > 详细

javax.el.ELException: The identifier [new] is not

时间:2014-08-13 19:36:27      阅读:403      评论:0      收藏:0      [点我收藏+]

下午给项目添加了一个小功能,报这个问题,看下图:

bubuko.com,布布扣


严重: Servlet.service() for servlet [springmvc] in context with path [/PUP] threw exception [An exception occurred processing JSP page /pages/front/conference/showConferenceDetails.jsp at line 32

29:                    <div class="oh">
30:                        <c:forEach items="${newsList }" var="new" >
31: 	                         <div class="block">
32: 	                       	      <p><img src="/images/news/contentPicture/${new.contentPicture}" width="184" height="114" /></p>
33: 	                              <p>${c.title }</p>
34: 	                        </div>
35:                         </c:forEach>

搞了半天,最后发现是因为别名起的有问题,

var="new",这句出的问题,new是jsp中的关键字,

把new定义为别的OK!

修改后的代码:

c:forEach items="${newsList }" var="c" >
	                         <div class="block">
	                       	      <p><img src="/images/news/contentPicture/${c.contentPicture}" width="184" height="114" /></p>
	                              <p>${c.title }</p>
	                        </div>
                        </c:forEach>



javax.el.ELException: The identifier [new] is not,布布扣,bubuko.com

javax.el.ELException: The identifier [new] is not

原文:http://my.oschina.net/u/256102/blog/300785

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!