I may be misunderstanding, but you are suggesting
using the body of the put and how big can that body
be...?

It is possible just to define the individual jsp's
without the need for this intermediary "template" jsp.
 This is a big advantage of tiles.  You can define the
definition in the tilesDefinitions.xml (or whatever
file name you have defined as a parameter for the
ActionComponentServlet).

You can forward to the tile definition as well from
within the perform() method.

You also have the possibility to behave exactly like
the template tag library as well.

It is quite possible that you know all of this, but I
thought I should mention it just in case.

I am sure Cedric will make things more clear for you.

sandeep

--- Peter Pilgrim <[EMAIL PROTECTED]> wrote:
> 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.
> 
> 


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

Reply via email to