I currently have a JavaBean that maintains a collection of Strut's ActionErrors objects, and another collection of Strings. There is absolutely no problem in using the iterate tag to retrieve the Strings and displaying them on the screen. The tough problem is retrieving the ActionErrors and showing them. The following is how I coded the
JSP:
<logic:iterate name="catalogPublishedResults" property="notPublishedItems" type="com.mercador.ejb.session.GCIProduct.GCIItemErrors" id="notPublishedItemReference">
<bean:write name="notPublishedItemReference" property="GTIN" />,
<logic:iterate name="notPublishedItemReference" property="errors" type="org.apache.struts.action.ActionError" id="notPublishedItemReferenceErrors">
(<i><html:errors name="notPublishedItemReferenceErrors" /></i>
</logic:iterate>
</logic:iterate>
This is the error message I get from webLogic when accessing the page: javax.servlet.jsp.JspException: Cannot create iterator for this collection
Any help is much appreciated.
Regards,
Filipe Pomar