[Opensource] Need a Jsp tag combination that works, iterate Blocks within a Bl ock

Dcomeau at xenos.com Dcomeau at xenos.com
Tue Feb 18 09:12:36 PST 2003


I've got a Block that contains Blocks that I need to iterate through.

Something like Block named "ListBlock" with a set of "EntryBlock" Blocks
inside it.  The Block "ListBlock" is added directly to the response.

How do I iterate through them without using the soon to be deprecated
<Expresso:xxx> tags? I am trying to primarily use the extended Struts tags
or normal Struts tags, and as a backup: JSTL.


I am thinking that logically something this should work:

<bean:define id="outerBlock" property="ListBlock"/>

<logic:iterate id="innerBlock" name="outerBlock" property="blocks">   
       Use the inner block here...
</logic:iterate>


I've just re-read the recent thread about ControllerElements not being
exposed as beans, but it lost me and I'm still unsure what I need to do.
Could somebody offer a snippet would work?


Thanks, help on this would be really appreciated :)
Dave



More information about the Opensource mailing list