Hi all and happy new year,

I am trying to fill an ActionForm with values that are neither Strings
or primitives. The specified values are selected using the
<html:select> tag. This a sample of my JSP code:

   <html:form action="/sumbit.do">
                        <html:select property="selectedAthlete">
                                <html:optionsCollection
                                        name="controlPanelValues"
                                        property="athletes"
                                        label="name"
                                        value="value" />                        
                        
                        </html:select>
   <html:submit>
        <bean:message key="cp.button.submit"/>
   </html:submit>
   </html:form>

The "controlPanelValues" Bean contains a collection (list) named
"athletes" containing Beans of type "Pair". The "Pair" object contains
2 attributes: The "name" which is a String and the value which is an
"Athlete" object.

My ActionForm contains an attribute named "selectedAthlete" of the
type "Athlete".

However, whenever I submit this form the "selectedAthlete"  is filled
with the string representation of the "Athlete" type.

I used both simple and map-backed actionform with no success. 

Is Struts capable for doing assignment of non String or primitive fields?

Chipix

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

Reply via email to