[Opensource] Need a Jsp tag combination that works, iterate Blocks
within a Bl ock
Will
laidback at telus.net
Tue Feb 18 13:09:21 PST 2003
This will work:
<logic:iterate id="outerblock" property="blocks">
<logic:iterate id="innerblocks" name="outerblock" property="blocks">
</logic:iterate>
</logic:iterate>
This first iterator will find your block in the ControllerResponse and the
second will iterate through the blocks in your outer block.
-----Original Message-----
From: opensource-admin at jcorporate.com
[mailto:opensource-admin at jcorporate.com]On Behalf Of Dcomeau at xenos.com
Sent: February 18, 2003 9:13 AM
To: opensource at jcorporate.com
Subject: [Opensource] Need a Jsp tag combination that works, iterate
Blocks within a Bl ock
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
_______________________________________________
Opensource mailing list
Opensource at jcorporate.com
http://mail.jcorporate.com/mailman/listinfo/opensource
Archives: http://mail.jcorporate.com/pipermail/opensource/
More information about the Opensource
mailing list