Where does 'top' come from?
-----Original Message-----
From: Dale Newfield [mailto:[email protected]]
Sent: 11 May 2010 14:49
To: Struts Users Mailing List
Cc: Steven Yang
Subject: Re: Iterate over an ArrayList of arrays
On 5/11/10 5:59 AM, Steven Yang wrote:
> try
> <s:iterator value="breadcrumbs">
> <li><a href="${top[1]}">${top[0]}</a></li>
> </s:iterator>
Except you're using EL here to access OGNL. I'd suggest this is
cleaner:
<s:iterator value="breadcrumbs">
<li><a href="<s:property value='%{top[1]}'/>"><s:property
value="%{top[0]}"/></a></li>
</s:iterator>
-Dale
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]