On Monday, July 15, 2002, 4:00:41 PM, hemant wrote:

h> I have a situation where I have a Collection of  banana Lists.

h> <nested:iterate id="crateOfBanaLists" name="rangesform" property="crates"
h> type="java.util.Collection">

h>   <nested:iterate id="bananaList">
h>      <nested:write name="bananaList"  property="bananaType"/> -
h> <nested:write name="brand" property="description"/>
h>      ................
h>      .............

h> Does the above mean it is trying to do a lookup on a
h> crateOfBanaLists.bananaList

   From my understanding in the above you have a collection of
   some objects in a Collection called "crates." Then inside of
   "crates" each Object in that collection should have fields called
   "bananaType" and "description" (with appropriate getters for those
   fields). I believe the property is what really matters and id is
   just what you are referring to the object as, so in the above I
   think you should have a Collection in your FormBean called "crates"
   with a a getCrates() method returning you your collection of Crate
   objects. If you want each crate object to have a List of bannanas
   you should have a property in the crate object called "bananaList".
   You might already have that field name, and if so change the part
   where it says
   <nested:iterate id="bananaList">
   to
   <nested:iterate id="bananaList" property="bananaList">
   I could be wrong but I think you are getting confused with the
   property part.

-- 

Rick
mailto:[EMAIL PROTECTED]


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

Reply via email to