I am trying to populate an html drop down with the Struts select and options 
tags.  The
cancelList bean referenced in the collection is an ArrayList of struts 
LabelValue beans. 
Here is the tag snippet:
             <bean:define id="cancelList" property="cancel" name="detailsForm" 
/>
        <html:select property = "cancelReason" >
        <option value = "">--Select--</option>
        <html:options collection="cancelList" property="myValue" 
labelProperty="myLabel" />
             </html:select>
  The stack trace(below) indicates that the Struts options tag is trying to 
call 
getMyValue()
method on the list object itself.  Omitting the property and labelProperty 
attributs of the
tag results in the Object toString() being invoked with the correct values of 
the labal and
value properties of the LabelValue Bean.
  Any assistance is much appreciated.

       
---------------------------------
 Check out what you're missing if you're not on Yahoo! Messenger 

Reply via email to