I need some help understanding how to iterate tiles. I have a setup action that creates a Vector of "Series" objects and does: session.setAttribute("seriesList", seriesList); and then forwards to a tile that is essentially a container for rows of series information. The container is content for a page layout definition, but I won't bother showing that here. Here are the two jsp files:
<%@ page isELIgnored="false" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> <%@ taglib uri="/tags/struts-tiles" prefix="tiles" %> <!-- begin SeriesList --> <table> <logic:iterate name="seriesList" id="series"> <tiles:get name="tiles.seriesItem"/> </logic:iterate> </table> <!-- end SeriesList -->
<%@ page isELIgnored="false" %> <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <!-- begin SeriesItem --> <html:xhtml/> <tr> <td> <bean:write name="series" property="safeTitle"/> </td> </tr> <!-- end SeriesItem -->
When I hit the page I get an exception:
Can't insert page '/WEB-INF/tiles/content/misc/SeriesItem.jsp' : Illegal to flush within a custom tag java.io.IOException: Illegal to flush within a custom tag at javax.servlet.jsp.tagext.BodyContent.flush(BodyContent.java:119) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:878) at
etc, etc.
How can I accomplish my goal? Dean Hoover
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]