Make sure the value selectedMonth in your action is set to 02. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 December 2007 19:29 To: Struts Users Mailing List Subject: Render preselected value in <s:select ../>
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. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]