• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic