struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bessette" <besse...@650dialup.com>
Subject Use iterate tag within a tiles putList tag
Date Sat, 01 Nov 2003 20:53:47 GMT
I have one sidebar layout that is used by every sidebar.  I have another
sidebar layout that references the first one, excerpt below.  This second
layout is used by a series of pages that I would like to have the same
layout format.

Anyway, this is what I'd like to do, but the iterate tags are not getting
parsed, just passed through when rendered.  Any ideas?

Excerpt:
<tile:importAttribute />

<tile:insert definition="application.layout.sidebar" flush="true">
    ...
    <tile:putList name="Browse">
        <logic:iterate id="by" name="${ browse }">
            <tile:add content="<A HREF='${
pageContext.request.contextPath }/${ root }/browse/by_${ by }'>By ${
application:capitalize( by ) }</A>" direct="true" />
        </logic:iterate>
    </tile:putList>
    ...
</tile:insert>

Output:
...
		<logic:iterate id="by" name="[name, state, drainage]">

		</logic:iterate>

<UL>
...
	<LI>
		Browse
	</LI>
		<UL>
			<LI>
				<A HREF='/application/destinations/browse/by_'>By </A>
			</LI>
		</UL>
...
</UL>

Thanks,
Eric


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message