On Sun, 18 Mar 2001, Anissina . wrote:

> Could someone please point out what I am doing wrong here? This is my code:
> 
> <struts-logic:iterate name="conditions" id="condition">
>   <struts-html:multibox name="condition"
>              property="<%= condition.getConditionId() %>"/>
> </struts-logic:iterate>
> 

There was an old bug where the iteration variable ("condition" in your
example) was not being exposed.  It was fixed by the time beta 1 came
out.  How old is your copy of Struts?

> It complains that condition is a non-existent entity. Shouldn't struts 
> recognise that it is wrapped by the iterate tag and retrive the value 
> through the same id?
> 
> Just to clarify, "conditions" is a collection of Condition objects, which 
> have a conditionId property.
> 

Haven't tried it yet, but if your Condition class as a
"conditionId" property, you should be able to say:

<logic:iterate name="conditions" id="condition">
  <html:multibox name="condition" property="conditionId"/>
</logic:iterate>


> If anyone can help out, that would be great!
> Thanks!
> Aaron.
> 
> 

Craig

Reply via email to