954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

JSP call function foreach

I'm trying to populate the items of a foreach-element in a JSP page.

<c:forEach var="request" items="${manageSchedulesBean.userController.getRequestsBySchedule[schedule.scheduleId]}">


Gives me:
org.apache.jasper.el.JspPropertyNotFoundException: /secure/manageSchedules.jsp(40,36) '${manageSchedulesBean.userController.getRequestsBySchedule[schedule.scheduleId]}' Property 'getRequestsBySchedule' not found on type $Proxy8

the called function exists, and when i cann manageSchedulesBean or userController, there is no error.

Someone got a clue?

Jerreke
Newbie Poster
2 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

use the name of the property, not the name of the getter.
So use RequestBySchedule, not getRequestBySchedule

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

I tried, but it gives me the same error:
org.apache.jasper.JasperException: org.apache.jasper.el.JspPropertyNotFoundException: /secure/manageSchedules.jsp(42,36) '${manageSchedulesBean.userController.RequestsBySchedule[schedule.scheduleId]}' Property 'RequestsBySchedule' not found on type $Proxy8

Jerreke
Newbie Poster
2 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: