Mike,

Are you still having a problem with this?  If so...looking at your
original JSP tags, I am sure that the problem is with your names not
matching up.  This is what needs to happen:

<logic:iterate id="alert" name="alertListForm" property="userAlerts"> 
  <bean:write name="alert" property="startingLocation.locationId" /> 
</logic:iterate>

In the object called "alertListForm", there must be a getter and setter
for "userAlerts": getUserAlerts() and setUserAlerts(Collection
userAlerts).  Those methods will return and accept a collection of
objects that in this case are LocationDTO's.

When you iterate, each object in the iteration will be known as an
"alert", so the property that you specify has to have a getter/setter.
In this case, your property should be "locationId".  Once again, insure
that you have the matching getter/setter methods: getLocationId() &
setLocationId(String locationId).

You do need to be careful with the capitalization.  We have found that
sticking to the java naming standard works best.  Defining a property
that begins with an uppercase throws Struts for a loop.

Hope this helps,
Nick




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

Reply via email to