Hi I'm new to struts and having problems referencing a nested collection of
objects for display in an dropdown list using <html:select> and
<html:options> tags

I am attempting to reference the following...UserProfileForm has a getter
which returns a List of Objects that have getGrpId() and getGrpDesc()

For testing purposes, the following code works and displays a list of
descriptions that I want to appear in my dropdown.
_________________________________________________________
<logic:iterate id="usergrouplist" name="userProfileForm"
property="groupMembership">
      <bean:define id="usergroup" name="usergrouplist"></bean:define>
      <bean:write name="usergroup" property="grpDesc" />
</logic:iterate>
____________________________________________________________

Here is what I have tried and failed to get working...

<bean:define id="usergroup" name="userProfileForm"
property="groupMembership"></bean:define>
<html:select property="usergroup" multiple="true">
      <html:options collection="usergroup" property="grpId"
labelProperty="grpDesc" />

Thanks
The information contained in this message may be CONFIDENTIAL and is for the 
intended addressee only.  Any unauthorized use, dissemination of the 
information, or copying of this message is prohibited.  If you are not the 
intended addressee, please notify the sender immediately and delete this 
message.

Reply via email to