Reputation: 7519
I am using Apache tiles
in my Spring MVC
project.
The whole thing is working fine, until i add another defination
in my <tiles-definations>
tag.
When i add multiple <defination>
in my <tiles-defination>
tag, it starts giving me following error message.
The content of element type "tiles-definitions" must match "(definition)+".
Tiles.xml
<definition name="common" template="/WEB-INF/templates/template.jsp">
<put-attribute name="header" value="/WEB-INF/templates/header.jsp" />
<put-attribute name="sidebar" value="/WEB-INF/templates/sidebar.jsp" />
<put-attribute name="footer" value="/WEB-INF/templates/footer.jsp" />
</definition>
<definition name="tilesHomePage" extends="common">
<put-attribute name="body" value="/WEB-INF/home.jsp" />
</definition>
<defination name="studentForm" extends="common">
<put-attribute name="body" value="/WEB-INF/form.jsp"/>
</defination>
I have google this, but unable to find any solution. Kindly guide me.
Upvotes: 1
Views: 3449
Reputation: 1274
Spelling Mistake- It Should be <definition>
, rather than <defination>
Upvotes: 4