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

Reply via email to