Hi all,

This struts code

<s:select lable="Months" name="months" headerKey="-1" headerValue="Select
Month" list="#{'01':'Jan','02':'Feb'}" value="selectedMonth"/>

generates this html code:

<select name="months" id="edit_months">
    <option value="-1">Select Month</option>
    <option value="01">Jan</option>
    <option value="02">Feb</option>
</select>

If I want "Feb" is selected (<option value="02" selected>Feb</option>), how
to do it in the <s:select .../>?

Many thanks.

Reply via email to