Description
Below code will NOT preselect options in optgroup because type of key is not a string.
<s:select name="ids" list="#{1:'AA'}" multiple="true" value="{1, 2, 3}"> <s:optgroup label="List BB" list="#{2:'BB', 3:'CC'}" /> </s:select>
Original SO question.