struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Kolesnikov <pavel.kolesni...@gmail.com>
Subject Re: ActionForm automatic type conversion
Date Tue, 04 Jan 2005 14:05:09 GMT
On Mon, 3 Jan 2005 11:16:16 +0200, dsarris <chipix@gmail.com> wrote:
> 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>

What about something like 

       <html:select property="selectedAthlete">
               <html:optionsCollection
                          name="controlPanelValues"
                          property="athletes"
                          label="name"
                          value="athleteId" />
       </html:select>

where athleteId is a primary key of "Athlete"?

Pavel

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message