Hello,

I struggled with the options tag because I did not understand what it meant
by 'collection'.  I could not pass a collection along with a request because
I was at my index page.  In other words, nothing had been done yet.  

I instantiated the bean that had the collection and then used a <bean:define
.../> to make the collection visible to the options tag.

This is a sample define statement for a bean named Cost, with an ArrayList
called costCentres.
<bean:define id="CostList" name="Cost" property="costCentres"/>

I then reference it in my form via:
.
.
.
      <html:select property="costCentre" size="0">
        <html:options collection="CostList" property="value"
                   labelProperty="label"/>
      </html:select>
.
.
.

I hope this helps.

Princeton

Reply via email to