In the Struts Template in order to use dynamic layout features introduction.jsp <%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
<template:insert template='/chapterTemplate.jsp'> <template:put name='title' content='Templates' direct='true'/> <template:put name='header' content='/header.html' /> <template:put name='sidebar' content='/sidebar.jsp' /> <template:put name='content' content='/introduction.html'/> <template:put name='footer' content='/footer.html' /> </template:insert> underConstruction.jsp <%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %> <template:insert template='/chapterTemplate.jsp'> <template:put name='title' content='Templates' direct='true'/> <template:put name='header' content='/header.html' /> <template:put name='sidebar' content='/sidebar.jsp' /> <template:put name='content' content='/underConstruction.html'/> <template:put name='footer' content='/footer.html' /> </template:insert> This is tiredsome because for every JSP file you need to have a separate insert file just to use the template. In Tiles you use a different form which very direct <template:insert template="layout.jsp"> <template:put name="title" value="Test with a tag body" /> <template:put name="header" type="string"> <strong>This header is inserted as body of tag</strong> </template:put> <template:put name="body" value="body.jsp"/> </template:insert> My question is how big can the BodyContent of the <template:put> string form be? I would like place a lot of the content in this custom tag? I am wondering if this is good idea or if there is a pitfall in performance or memory Cedric? -- Peter Pilgrim | | ++44 (0)207-545-9923 .... \ \ ___ / / ... . - ---- ( * ) --- -- _____________________________Cafe_Savannah,_San Antonio,Ibiza__ -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.