के साथ टाइल्स 2 का उपयोग कैसे करें स्ट्रिप्स 1 के साथ टाइल्स 2 का उपयोग करना संभव है?स्ट्रेट्स 1
मैं अनुदेश माइग्रेशन मार्गदर्शिका http://tiles.apache.org/migration/index.html
लेकिन यहां उपलब्ध का पालन किया है जब मैं अपने कार्यों तक पहुँचने का प्रयास, मैं इस त्रुटि मिलती है:
org.apache.tiles.template.NoSuchAttributeException: Attribute 'body' not found.
मैं 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>
और टाइल्स-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>
इस टाइलें 1. के लिए समाधान मैं करने की आवश्यकता है टाइल्स 2 का प्रयोग करें –