Thanks I saw I made an syntax error and I change the way to use
dynamic field and now it's working fine :))
----- Original Message -----
From: "Chen, Gin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 3:52 PM
Subject: RE: more <html:select .......
> There's a few things right off the bat.
>
> Collection formations = (Collection) session.getAttribut("formations");
>
> should be:
>
> Collection formations = (Collection) session.getAttribute("formations");
>
> Also why are you bothering to take it out of session?
> You can simply write your code as:
>
> <html:options name="formations" labelName="formations"/>
>
> if you read the docs on options
> http://jakarta.apache.org/struts/userGuide/struts-html.html#options
> This should do what you want without you needing the scriptlet.
>
> -Tim
>
> -----Original Message-----
> From: alexj [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 21, 2003 8:18 AM
> To: Struts Users Mailing List
> Subject: more <html:select .......
>
>
> Who can tell me what's wrong here :
>
> <% Collection formations = (Collection) session.getAttribut
("formations");
> %>
>
> <tr>
>
> <td width="33%"><bean:message key='app.personFormationSelected'/></td>
>
> <td width="67%">
>
> <p align="center"><html:select property="formationSelected" size="20">
>
> <html:options name="formations" labelName="formations"/>
>
> </html:select>
>
> </td>
>
> Thanks.
>
> <--
> Alexandre Jaquet
> ->
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]