Lukasz Lenart wrote:
> I'm using something like this:
>
> <s:radio name="employee.employeeType" key="label.employee.type"
> list="employeeTypes" listKey="shortcut"
>                      listValue="name()" required="true"/>

Oh wonderful! I didn't know that’s what listKey and listValue were for. I was 
able to take my four lines of JSP and convert them into just one:

<s:select name="myEnum" list="[EMAIL PROTECTED]@values()}" listKey="name()" 
listValue="toString()"/>

Terrific! Thank you Lukasz!

p.s. to call the static values() method of the enum, 
struts.ognl.allowStaticMethodAccess must be set to true in struts.properties or 
struts.xml

Brad Cupit
Louisiana State University - UIS

Reply via email to