bennieuwhof
Programmer
Hi,
I trying to get default value in a list doïng this:
<html:form action="/action/goahead.do">
<html:select property="type">
<c:forEach var="typnr" items="${FormbeanName.typelist}">
<htmlption value="$typnr" key="resource.item.${typnr}" />
</c:forEach>
</html:select>
</html:form>
The formBean FormBeanName is part of the action-mapping goahead.
I expect the row where typnr equals the property type to be selected. However it seems that the contents of "type" is lost at the moment the comparison will have place.
All items are shown in the selection list but none of them is SELECTED
Anyone knowing what I doin'wrong?
THX
Ben
I trying to get default value in a list doïng this:
<html:form action="/action/goahead.do">
<html:select property="type">
<c:forEach var="typnr" items="${FormbeanName.typelist}">
<htmlption value="$typnr" key="resource.item.${typnr}" />
</c:forEach>
</html:select>
</html:form>
The formBean FormBeanName is part of the action-mapping goahead.
I expect the row where typnr equals the property type to be selected. However it seems that the contents of "type" is lost at the moment the comparison will have place.
All items are shown in the selection list but none of them is SELECTED
Anyone knowing what I doin'wrong?
THX
Ben