I'm trying to conver some existing jsp's to Struts but confused about the interaction between JTSL looping constructs and Struts tags. I''ve got a session attribute containing a list of subjects which get output as the options in a select. The Struts version complains that that the attribute subj has no value, while everything works fine in the original. Anybody have any advice?
Here's my original jsp-based form: <form method="post" action="/grumpy/Controller" > <select name="topic"> <c:forEach items="${subjects}" var="subj"> <p><option value= "<c:out value="${subj}"/>"> <c:out value="${subj}"/> </option></p> </select> <input type="submit" value="Choice" name="action" /> </form> Here's my attempt at a struts version" <html:form action="/choice" name="choiceForm" type="carl.struts.ChoiceForm" > <html:select property="topic"> <c:forEach items="${subjects}" var="subj"> <p><html:option value= "<c:out value="${subj}"/>"> <c:out value="${subj}"/></html:option></p> </c:forEach> </html:select> <html:submit>Choose Subject</html:submit> </html:form> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>