I'm trying to set up some tiles portals that are defined via a HashMap from a DB query. I thought I had it figured out, but it's not cooperating. The iteration works... I've tested it without the tiles code. When I insert the tiles code in the jsp below I get the following output:

Can't insert page '/shared/layout/greyBorderBox.jsp' : Illegal to flush within a custom tag

Am I doing something wrong -or- am I trying to do something that is not possible with tiles?


Thanks, ajTreece


<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>

<H1>I'm here!!!</H1>

<logic:iterate id="map" name="portalMap" scope="request">
<bean:define id="key" name="map" type="java.util.HashMap" property="value"/>

<tiles:insert definition="grey.box.layout">
<tiles:put name="headerclass" direct="true" value="sw-boxtitle"/>
<tiles:put name="bodyclass" direct="true" value="sw-boxcell"/>
<tiles:put name="title" direct="true">
<bean:write name="key" property="header" />
</tiles:put>
<tiles:put name="body1align" direct="true">
<bean:write name="key" property="body1align" />
</tiles:put>
<tiles:put name="body1">
<bean:write name="key" property="body1" />
</tiles:put>
</tiles:insert>

</logic:iterate>

<H1>I'm there!!!</H1>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to