I have a form bean that has an array of objects that I want to iterate
through. This array is called "item_Adjustmentsl". There is another array of
the same length, that I also want to use, this one's called
"existingAdjustment". It's simply an array of Strings. So I'm trying to do
something like this:

<logic:iterate id="item_AdjustmentModel" name="ItemBean"
property="item_Adjustments" 
     indexId="ctr" type="gov.bls.idcf.ppi.common.ItemAdjustmentModel"> 
<html:hidden name="item_AdjustmentModel" property="item_Code" indexed="true"
/>       
<html:hidden name="item_AdjustmentModel" property="adjustment_Number"
indexed="true" />
<html:hidden property="existingAdjustment" indexed="true" />


The problem is with the last line. I can't get it to simply iterate though
the existingAdjustment array. I want the second HTML line to be rendered:
<input type="hidden" name="item_AdjustmentModel[0].item_Code" ...

And the last line should be rendered:

<input type="hidden" name="existingAdjustment[0]" ....

Is there any hope?

--
Tim Slattery
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to