Sorry I should have added more info.

ContestForm is DynaValidatorForm and has

<form-property  name="categories"  type="java.util.Collection"/>
<form-property  name="categoryId"  type="java.lang.Integer"/>

if I try

<html-el:options collection="${ContestForm.categories}" property="id"
labelProperty="categoryName"/>

with DynaValidatorForm, it does not work.

.anil

to recap...
struts-config.xml

<form-bean name="ContestForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property  name="categories"  type="java.util.Collection"/>
<form-property  name="categoryId"  type="java.lang.Integer"/>
  </form-bean>

jsp...

<html-el:form action="/contest/addcoll">

    <html-el:options collection="${ContestForm.map.categories}"
property="id" labelProperty="categoryName"/>

</html-el:select>
</html-el:form>


categories holds instances of Category class.

class Category {
    public Integer getId(); //and set
    public String getCategoryName(); // and set
}



---> On some other page.. this works ok.. so it is there. I cannot get
this into select...

<logic-el:iterate id="cats" collection="${ContestForm.map.categories}"
indexId="index">

 <tr><td>
  <c:out value="${cats.categoryName}"/>
 </td>
 <td>
 <html-el:link
page="/contest/add.do?col=cat&pindex=${ContestForm.map.index}&index=${cats.index}">Remove</html-el:link>

 <td>
 </tr>

</logic-el:iterate>

.anil


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

Reply via email to