tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maven apache <apachemav...@gmail.com>
Subject how to insert a nest tiles
Date Tue, 01 Mar 2011 12:35:12 GMT
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 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" />


    <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>



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

This is the codes in the time_body.jsp:

<div class="div_fullwidth">

    <tiles:insertAttribute name="timebar" />

Any ideas?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message