You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bram <br...@info.nl> on 2001/02/21 17:54:02 UTC
template tags
Hi,
is there a way to nest "template:insert" tags?
when I try the following I get a "Illegal to flush within a custom tag"
exception. (ps I know that I can "cut it up" in multiple jsp pages, but this way would be nice)
eg
<template:insert template="template1.jsp">
<template:put name="a" content="a.html"/>
<template:put name="b" content="b.html" />
<template:put name="c">
<template:insert template="template2.jsp">
<template:put name="d" content="d.html"/>
<template:put name="e" content="e.html" />
</template:insert>
</template:put>
</template:insert>
Thanx,
Bram Meijboom
Re: template tags
Posted by David Geary <sa...@tri-lakesonline.net>.
No, you cannot nest template:insert tags. You must "cut it up".
david
bram wrote:
> Hi, is there a way to nest "template:insert" tags?when I try the
> following I get a "Illegal to flush within a custom tag"exception. (ps
> I know that I can "cut it up" in multiple jsp pages, but this way
> would be nice)eg<template:insert template="template1.jsp">
> <template:put name="a" content="a.html"/>
> <template:put name="b" content="b.html" />
> <template:put name="c">
> <template:insert template="template2.jsp">
> <template:put name="d" content="d.html"/>
> <template:put name="e" content="e.html" />
> </template:insert>
> </template:put>
> </template:insert> Thanx,Bram Meijboom
Re: template tags
Posted by David Geary <sa...@tri-lakesonline.net>.
No, you cannot nest template:insert tags. You must "cut it up".
david
bram wrote:
> Hi, is there a way to nest "template:insert" tags?when I try the
> following I get a "Illegal to flush within a custom tag"exception. (ps
> I know that I can "cut it up" in multiple jsp pages, but this way
> would be nice)eg<template:insert template="template1.jsp">
> <template:put name="a" content="a.html"/>
> <template:put name="b" content="b.html" />
> <template:put name="c">
> <template:insert template="template2.jsp">
> <template:put name="d" content="d.html"/>
> <template:put name="e" content="e.html" />
> </template:insert>
> </template:put>
> </template:insert> Thanx,Bram Meijboom