struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <j...@wendysmoak.com>
Subject Re: html:options won't get preselected!
Date Thu, 30 Dec 2004 16:20:27 GMT
From: "Nadia Kunkov" <nadiak@parkerglobal.com>

> <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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message