Hi folks,
I am using a cobmo box to display values from a collection on a
JSP.(I am using
struts)
Following is the piece of code:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<html:select name="cmPartyToPartyRelationshipsForm" property= "partyToPartyRelationships[0].partyRelationships" styleId= "optBoxShort" >
<html
ption value="">
<bean:write name="cmPartyToPartyRelationshipsForm" property="partyToPartyRelationships[0].partyRelationships[0].relationship"/>
</html
ption>
</html:select>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<i>relationship</i> is a collection of strings and all the values are getting displayed within a single drop down. I want all the values in the collection <i>relationship</i> to be displayed in seperate combo boxes.
I tried inserting </br>, but somehow it doesnt seem to work as all the values are getting printed at once in the combo.
Thanks in advance.