We have application in Tiles2 where we have tiles definition tag having bean in the put-list-attribute and works well, but not able to migrate those for Tiles 3 compatible one. Can anyone guide us,
sample code ...
<definition name=".tabs.resource.list" extends=".tabs.resource">
<put-attribute name="selectedIndex" value="0" />
<put-attribute name="resourceType" value="1" />
<put-list-attribute name="tabList">
<bean classtype="org.test.sample.ui.util.Tab">
<set-property property="value" value="Tab1" />
<set-property property="link" value="currentHealthTab1listVisibility.action" />
<set-property property="mode" value="currentHealth" />
<set-property property="height" value="21" />
<set-property property="width" value="102" />
</bean>
<bean classtype="org.test.sample.ui.util.Tab">
<set-property property="value" value="Tab2" />
<set-property property="link" value="viewlistTab2listVisibility.action" />
<set-property property="mode" value="view" />
<set-property property="height" value="21" />
<set-property property="width" value="102" />
</bean>
</put-list-attribute>
</definition>`
org.test.sample.ui.util.Tab is override for simplemenuitem class
As beans for Menu Item is removed in latest version of tiles, We will have to create servlet class and map to the jsp page uses those attributes {in the above question which jsp pointed in extends=".tabs.resource" / jsp page in the definition} in web.xml and set the attribute in the class we can set up the list attribute and include the servlet response as below:
`