Here's my model:
public class Class {
@ManyToMany(etc etc)
@JoinTable(etc etc)
public List<Course> Courses;
Here's my view:
<c:forEach items="${classes}" var="class">
<tr>
<td>${class.className}</td>
<td>
<c:forEach items="${courses}" var="course">
<input type="checkbox"
<c:if test="${class.Courses.contains(course)}"> checked</c:if>>
${course.courseName}
</c:forEach>
</td>
</tr>
</c:forEach>
The view only produces this 500 error:
javax.el.PropertyNotFoundException: The class 'com.springapp.mvc.Class' does not have the property 'Courses'.