Seems that you're trying to write out a property instead of the bean. Try this... <logic:iterate id="mc" name="entries" property="mcEntries" type="com.moog,us.eos.beans.MCEntry"> <bean:write name="mc" property="oldDept" /> <bean:write name="mc" property="oldMatch" /> <bean:write name="mc" property="newDept" /> <bean:write name="mc" property="newMatch" /> <bean:write name="mc" property="pivotDept" /> <bean:write name="mc" property="pivotMatch" /> </logic:iterate>
...should get you back on the road. Arron. On Fri, 2002-06-21 at 04:59, Kamholz, Keith (corp-staff) USX wrote: > When you use the <logic:iterate> tag, do you have to define the id that > stores the result of the iteration before the tag? > My code is: > > <logic:present name="entries" property="mcEntries"> > <logic:iterate id="mc" name="entries" property="mcEntries" > type="com.moog.us.eos.beans.MCentry"> > <bean:write name="mc.oldDept"/><br> > <bean:write name="mc.oldMach"/><br> > <bean:write name="mc.newDept"/><br> > <bean:write name="mc.newMach"/><br> > <bean:write name="mc.pivotDept"/><br> > <bean:write name="mc.pivotMach"/><br> > </logic:iterate> > </logic:present> > <logic:notPresent name="entries" property="mcEntries"> > <b><i>NO ENTRIES</i></b><br> > </logic:notPresent> > > If I don't define the id before the iterate tag, I get a runtime error that > says: > Cannot find bean mc.oldDept in scope null: > However, if I do define the id, then I get a compile time error that > complains about a duplicate variable. > Maybe the "cannot find bean" error is referring to the "oldDept" part rather > than the "mc", but I dont' know. > What's going on? > > > ~ Keith > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>