I'm using Eclipse, making a dynamic web project and have included JSTL in my JSPs. Everything works fine, I have core autocomplete available and so on.
The problem is as follows: when I foreach
with JSTL a specific array list of custom objects, I can't access properties of an instance. Here's an example:
<c:forEach var="person" items="${listOfPeople}">
<c:out value="${person.name}" />
</c:forEach>
So, a person
has a property getName()
. If I use scriplets e.g.:
<%
Person p = new Person();
p.getName();
%>
Eclipse enables autocomplete on object p
, but when I use JSTL, there is no autocomplete on instance.
Is it something missing or wrong with my Eclipse, or is it meant to work without autocomplete?