JSTL accessing properties on an object that extends ArrayList
I have an object that extends ArrayList and adds a bunch of properties (like title).
When I do this
<c:forEach items="${linkSet}" var="link" varStatus="status">
${linkSet.title}
</c:forEach>
I get this error :
<Error 500: The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List or array, but that value cannot be converted to an integer.
Which implies that JSTL is treating "title" as an index value to get a value from the List - i.e. it's treating my extended List object as a simple List object.
Is there anyway to get JSTL to see it as a property on an the extended List object and not an index on the underlying List class ?