Hi: I know how to insert the attribut and defination in the jsp page,but I
can not insert a nestly tiles.
This is the exmaple:
<definition name="/commonPage" template="/jsp/common/template.jsp">
<put-attribute name="header" value="/jsp/common/defaultHeader.jsp" />
<put-attribute name="menu" value="/jsp/common/defaultMenu.jsp" />
<put-attribute name="footer" value="/jsp/common/defaultFooter.jsp" />
</definition>
<definition name="/all" extends="/commonPage">
<put-attribute name="body" value="/jsp/all_body.jsp" />
<put-list-attribute name="scriptList">
<add-attribute value="/res/script/all.js" />
</put-list-attribute>
</definition>
<definition name="/time" extends="/commonPage">
<put-attribute name="timebar" value="/jsp/common/timebar.jsp" />
<put-attribute name="body" value="/jsp/time_body.jsp" />
<put-list-attribute name="scriptList"></put-list-attribute>
</definition>
</tiles-definitions>
And in the tempalte.jsp:
....
<tiles:insertAttribute name="meun">
...
<tiles:insertAttribute name="footer">
Now,in the time_body.jsp,I want to insert another jsp -- timebar.jsp.
So I define the attribute in the definition of "/time",however it does not
work.
This is the codes in the time_body.jsp:
<div class="div_fullwidth">
<tiles:insertAttribute name="timebar" />
</div>
Any ideas?