Can anybody help me spot what I'm missing in creating an HTML SELECT box with the html:option tag?
I'm iterating through a list of objects that have IDs and Names, plunking the ids in for the value and the name for the name. But the <html:option> tag seems to insist that the bean isn't there and just prints my expression. I'm going through a loop within a loop but that shouldn't make a difference. This: <html:option value="${emailGroup.emailGroupID}"> produces this: <option value="${emailGroup.emailGroupID}"> instead of this: <option value="17"> 'emailGroup' is defined and exists because I'm using it for label values. In debugging this, I'm even printing the IDs in parentheses as part of the label using <c:out ...> inside the html:option tags and it finds it just fine. I'm going batty. Can someone help? (me find the problem, not help me go batty). Thanks in advance. Dave fuller excerpt of code: <html:select property="toGroup" styleClass="box1" style="width=100%;"> <html:option value=""></html:option> <c:forEach var="emailGroupType" items="${emailGroupTypes}"> <html:option value=""><c:out value="${emailGroupType.emailGroupTypeName}"></c:out></html:option> <c:forEach var="emailGroup" items="${emailGroupType.emailGroups}"> <html:option value="${emailGroup.emailGroupID}"> <c:out value="${emailGroup.emailGroupName}"/> (<c:out value="${emailGroup.emailGroupID}"/>) </html:option> </c:forEach> </c:forEach> </html:select>