tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Krah <krah...@gmail.com>
Subject Re: Struts 1 / Tile 2 integration issue
Date Fri, 17 Mar 2017 16:50:12 GMT
This seems kind of strange:

https://tiles.apache.org/framework/tiles-jsp/tlddoc/tiles/insertAttribute.html

/baseLayout.jsp is not a name of an attribute but the template name of
the definition, looks suspicious to me.

Maybe you mean:

https://tiles.apache.org/framework/tiles-jsp/tlddoc/tiles/insertTemplate.html

If you look here:

https://tiles.apache.org/framework/tiles-jsp/tlddoc/tiles/tld-summary.html

This looks like the one you're looking for:

<tiles:insertTemplate template="/basic/myLayout.jsp" flush="true">
                   <tiles:putAttribute name="title" value="My first
page" />
                   <tiles:putAttribute name="header"
value="/common/header.jsp" />
                   <tiles:putAttribute name="footer"
value="/common/footer.jsp" />
                   <tiles:putAttribute name="menu"
value="/basic/menu.jsp" />
                   <tiles:putAttribute name="body"
value="/basic/helloBody.jsp" />
                </tiles:insertTemplate>



Could you double check that.

kind regards

Torsten

Am Freitag, den 17.03.2017, 16:07 +0000 schrieb Venu Gopalan:
> <tiles:insertAttribute name="/baseLayout.jsp" flush="true">
> <tiles:putAttribute name="title" value="Tiles Example"/>
> <tiles:putAttribute name="header" value="/header.jsp" />
> <tiles:putAttribute name="menu" value="/menu.jsp" />
> <tiles:putAttribute name="body" value="/body.jsp" />
> <tiles:putAttribute name="footer" value="/footer.jsp" />
> </tiles:insertAttribute>



Mime
View raw message