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]

Reply via email to