I'm having the same issue like this: A comment has a list of responses and each response has a list of responses and so on...
I would like to display the whole discussion thread:
in jsp, i have this:
<rec:write list="${comment.responses}" />
in the tag file:
<%@ attribute name="list" required="true" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="rec" %>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>
<c:if test="${!empty list}">
<ul>
<c:forEach var="response" items="${list}">
<li><c:out value="${response.content}"/></li>
<rec:write list="${response.responses}"/>
</c:forEach>
</ul>
</c:if>
But i get this exception:
JspException: javax.el.PropertyNotFoundException: Property 'content' not found on type java.lang.String