Per Jørgen Walstrøm ha scritto:
<tiles:insert definition="myLayout">
   <tiles:put name="body" type="string">
      <logic:iterate id="outageElement" name="searchForm" 
property="region1Papers">
         <tiles:insert page="/nextPage.jsp" flush="false"/>
      </logic:iterate>
   </tiles:put>
</tiles:insert>

and my nextPage.jsp contains this:
<bean:write name="outageElement" property="name"/>

Beans are not passed automatically to a tile, but they can be passed as attributes.

Rewrite the first piece this way:

<tiles:insert definition="myLayout">
  <tiles:put name="body" type="string">
     <logic:iterate id="outageElement" name="searchForm" 
property="region1Papers">
        <tiles:insert page="/nextPage.jsp" flush="false">
          <tiles:put name="outageElement" beanName="outageElement" />
        </tiles:insert>
     </logic:iterate>
  </tiles:put>
</tiles:insert>


And your nextpage.jsp will be:

<tiles:insert attribute="outageElement" />
<tiles:importAttribute name="outageElement" />

<bean:write name="outageElement" property="name"/>


HTH
Antonio


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

Reply via email to