• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL defferedExpression exception when trying call method on an object retrieved from c:foreach tag  RSS feed

 
Sandhya Gutha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Sir,
I am learning JSTL.

I have a bean named Company with all getters and setters required.
I have a method getCompaniesList which returns companies list.

I have following JSP code:

<jsp:useBean id="companyBean" class="com.ets.BE.Company" />
<c:set var="companylist" value="${companyBean.companiesList} "
scope="session" />

<c:forEach var="company" items="${companylist}">
<c:out value="${company.companyName}<br />" escapeXml="false" />
</c:forEach>




When i am executing this, I am getting the following error:

javax.servlet.ServletException: deferredExpression
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause
java.lang.NoSuchFieldError: deferredExpression.


 
Miku Ranjan
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Please check the filed that you are trying to access in jstl using EL is present and their getter and setter method are also present.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!