Czy można używać Tiles2 z Struts 1?Jak korzystać z Tiles2 ze Struts 1
I już po instrukcje dostępne w przewodniku migracji http://tiles.apache.org/migration/index.html
Ale gdy próbuję dostęp do moich działań, otrzymuję ten błąd:
org.apache.tiles.template.NoSuchAttributeException: Attribute 'body' not found.
mam w struts-config.xml:
<controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
maxFileSize="10M" tempDir="/tmp" />
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
</plug-in>
i płytek-defs.xml
<definition name="mainTemplate" template="/common/templates/mainTemplate.jsp" />
<definition name="index" extends="mainTemplate">
<put-attribute name="body" type="string" value="/views/index/index.jsp" />
</definition>
jest to rozwiązanie do płytek 1. muszę użyj płytek 2 –