D
danparker276
I want to set the value of my select box, but can't get the value in
there.
The following, works perfect:
<html:select property="selectedShortCodeL" value="400">
<htmlptionsCollection name="ctform" property="shortCodeList"
label="name" value="name"/>
</html:select>
But I want to make value dynamic.
<bean:write name="ctform" property="scSet"/> This value is 400, but
how do I put it in the select property?
This doesn't work:
<html:select property="selectedShortCodeL" value="scSet">
<htmlptionsCollection name="ctform" property="shortCodeList"
label="name" value="name"/>
</html:select>
there.
The following, works perfect:
<html:select property="selectedShortCodeL" value="400">
<htmlptionsCollection name="ctform" property="shortCodeList"
label="name" value="name"/>
</html:select>
But I want to make value dynamic.
<bean:write name="ctform" property="scSet"/> This value is 400, but
how do I put it in the select property?
This doesn't work:
<html:select property="selectedShortCodeL" value="scSet">
<htmlptionsCollection name="ctform" property="shortCodeList"
label="name" value="name"/>
</html:select>