Hi.

I am trying to get html:select to work for my purpose.

Can anybody help me......

c_stand is a String value from PeopleBean in request.getAttribute("people");
cs is a collection containing values in OptionValueBean.

If cs contains values test1, test2 and test3 and c_stand contains test2 I want 
test2 to be selected in the html:select

Is that possible?

<logic:iterate id="element" name="people">
<bean:define name="element" id="c_stand" property="c_stand" />

<html:select property="c_stand">
<html:options collection="cs" property="value" labelProperty="option"/>
</html:select>

</logic:iterate>

Reply via email to