struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Re: Re: template tags
Date Fri, 24 Aug 2001 11:21:41 GMT
> You mean something like this?
> <logic:iterate id="x" >
>     <template:get name="<%= x %>" />
> </logic:iterate>
> I am not sure, whether this is possible in the 
> soon-to-be-deprecated template
> tags or in the tiles tags, but the idea is good.

No, I mean a caller like:

<template:insert template='/chapterTemplate.jsp'>
  <template:put name='name[0]' content='name_0'/>
  <template:put name='name[1]' content='name_1'/>
  <template:put name='name[2]' content='name_2'/>

Then in the template itself:

<logic:iterate id="x" name="name">
  <bean:write name="x"/>

So the <template:put> would recognize that name needs
to be a list and create the bean accordingly.


View raw message