I am getting a list \'myList\' of objects in jsp. Objects I am getting belongs to e.g \'MyClass\'. I want to iterate over this list through JSTL.
JSP code is below :
There is a mistake. See this line <c:forEach items="${myList}" var="element">
. ${} around 'myList' was missing.
<c:forEach items="${myList}" var="element">
<tr>
<td>${element.status}</td>
<td>${element.requestType}</td>
<td>${element.requestedFor}</td>
<td>${element.timeSubmitted}</td>
</tr>
</c:forEach>
replace it with
`${element.status}`
JSTL will look for standard getters setters on its own