As far as I can see, you can only specify the same styleClass value for all html:options in a collection. I'd like to specify the same value for the "styleClass" attribute as the "property" attribute. Is there a way I can do this either with
struts tags or jstl? Thanks for any help.
I'd like to do something as the below example. Note, that the example renders a "class" attribute of the literal
string "value" instead of the desired value of getValue() in the LabelValueBean in the labelColorsList.
<html:options collection="labelColorsList" styleClass="value" property="value" labelProperty="label" />