码迷,mamicode.com
首页 > 编程语言 > 详细

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

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

标签:style   http   color   java   os   io   for   ar   

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

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

标签:style   http   color   java   os   io   for   ar   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!