struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Re: Viscious Knid
Date Tue, 26 Feb 2008 22:56:12 GMT
javaskull wrote:
> I have a misbehaving tag.  This works:
> 
> <logic:iterate name="editPermissionAgreementTermsForm" 
> property="selectedComponentBeans" indexId="ctr" 
> id="selectedComponentBean" type="SelectedComponentBean">
> <bean:write name="editPermissionAgreementTermsForm" property='<%
> ="selectedComponentBean[" + ctr + "].label"%>' />
> </logic:iterate>
> 
> This doesn't:
> 
> <bean:write name="editPermissionAgreementTermsForm" 
> property="selectedComponentBean.ctr.label" />
> 
> Is there some non-nasty way of getting the same effect without the 
> scriptlet?

Something like

   <bean:write name="editPermissionAgreementTermsForm"
     property="selectedComponentBean[ctr].label" />

should work.

L.


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


Mime
View raw message