struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghuveer Rawat" <>
Subject How to Default a value in dynamic list (s:select)
Date Sat, 09 Feb 2008 20:48:53 GMT
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="" headerKey="-1" headerValue="Select Country"
                            list="countryList" listKey="code"
listValue="name" required="true" />


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message