Hi,

the following fragment does not work:

                <html:form action="addMedication.action">
                        <td>
                                <html:text property="doseAsInteger" size="3"/>                        
                        </td>
                        <td>
                                <html:select property="dayCategory">
                                        <logic:iterate id="catEntry" name="dayCategorys">
                                                <html:option value="<%=catEntry%>" key="<%= "medication.daycategory." + catEntry%>"/>
                                        </logic:iterate>
                                </html:select>                        
                        </td>                        
                </html:form>


whereas dayCategorys is a ArrayList containing Integers. The resulting HTML output look like this

                <form name="medicationForm" method="POST" action="/HW/addMedication.action?sessionid=O26MPfpCQ2poVw7RkJzDahq8jR2Zg3soZpfx40N3f6g4KVo1qQEc|-7855556482589992354/168430344/6/7003/7003/7002/7002/7003/-1">
                        <td>
                                <input type="text" name="doseAsInteger" size="3" value="0">                        
                        </td>
                        <td>
                                <select name="dayCategory"><html:option value="100024" key="medication.daycategory.100024"/>
                                       
                                                <html:option value="100025" key="medication.daycategory.100025"/>
                                       
                                                <html:option value="100026" key="medication.daycategory.100026"/></select>                        
                        </td>
                       
                </form>

which is correct apart from the fact that there is still a <html:option ...> rather than a simple option It seems that the html:option is not properly evaluated.

Any hints?

Thanks -- Tobias

Reply via email to