Liu, Benson wrote the following on 5/11/2005 2:21 PM:

public Class Discrepancy {
        String[] discrepancyIds;
}

public Class CashException {
        Collection discrepancies; // collection of Discrepancy objects
}

In my JSP, I tried the following:

<nested:iterate property="discrepancies" >
        <nested:iterate id="discrepancyId" property="discrepancyIds" >
                <nested:hidden property="discrepancyId" /> <!-- ??? -->
        </nested:iterate>
</nested:iterate>

How would I generate hidden tags for all of the nested Id fields?

I think the following should do what you want...

(if not using JSP2.0 use the appropriate nested-el tag)

 <nested:iterate property="discrepancies" >
  <nested:iterate id="discrepancyId" property="discrepancyIds" >
   <nested:hidden property="discrepancyIds" value="${discepancyId}"/>
  </nested:iterate>
 </nested:iterate>

--
Rick

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



Reply via email to