You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "struts@pandora.be" <st...@pandora.be> on 2003/10/30 21:41:05 UTC
html:select
how can i default a countrylist, i mean set the selected country ?
I want the selected to be 'BE'
my code:
<html:select property="user.countryCode" styleClass="contentsmall">
<html:options labelProperty="nam" collection="countriesList" property="countryId" />
</html:select>
Thanks !
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: html:select
Posted by Rhet Behler <rh...@velocera.com>.
set the country in the action before the page if null
----- Original Message -----
From: <st...@pandora.be>
To: <st...@jakarta.apache.org>
Sent: Thursday, October 30, 2003 1:41 PM
Subject: html:select
> how can i default a countrylist, i mean set the selected country ?
> I want the selected to be 'BE'
>
> my code:
>
> <html:select property="user.countryCode" styleClass="contentsmall">
> <html:options labelProperty="nam" collection="countriesList"
property="countryId" />
> </html:select>
>
>
> Thanks !
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org