So based on the last example there,
<s:select label="Months"
name="months"
headerKey="-1" headerValue="Select Month"
list="#{'01':'Jan', '02':'Feb', [...]}"
value="selectedMonth"
required="true"
/>
// The month id (01, 02, ...) returned by the getSelectedMonth() call
// against the stack will be auto-selected
I'd just do something like,
list = "#roleAction.roles"
value="user.roles"
etc?
-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Nate Drake
Sent: Friday, May 11, 2007 8:55 AM
To: [email protected]
Subject: Re: [S2] <s:select> tag & pre-selected options
http://struts.apache.org/2.x/docs/select.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]