Use the 'value=""' attribute. Assuming the name/value is USA/USA, then
the following might work -
<s:select name="user.country" headerKey="-1"
headerValue="Select Country" list="countryList" listKey="code"
listValue="name" required="true" value="USA" />
I believe 'value=' can take an OGNL expression if you want it a bit more
dynamic.
-Wes
On Sat, 2008-02-09 at 15:48 -0500, Raghuveer Rawat wrote:
> Hi, How to make a value as default value in a dynamic list s:select?
> Below code display a List of Countries sorted by Country Name so country
> name with letter a comes first but I want USA as default country.
> How to do that?
>
> <s:select name="user.country" headerKey="-1" headerValue="Select Country"
> list="countryList" listKey="code"
> listValue="name" required="true" />
>
> Thanks...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]