You are right! It was the key against the name.
Thank you so much.
Nadia

-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 30, 2004 11:20 AM
To: Struts Users Mailing List
Subject: Re: html:options won't get preselected!


From: "Nadia Kunkov" <[EMAIL PROTECTED]>

> <html:select property="country" >
>     <html:options collection="countryList" property="countryID"
                        labelProperty="countryName"/>
>  </html:select>

Struts will pre-select the item when the 'country' property of the form
matches the countryID of the option.

What is the exact value of the 'country' property of the form?  I'm betting
you've got 'Canada' when you need 'CAN'.

-- 
Wendy Smoak


---------------------------------------------------------------------
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