Well, neither are working. The first one gives me this error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 402 in the jsp file: /cars/uadmin/addedit.jsp
Generated servlet error:
The method setValue(String, Object) in the type TagSupport is not applicable for the arguments (Object)
This may mean that something isn’t right in my java stuff, but I can’t imagine why that would make a difference with this. And you’re right, the second one doesn’t work - it throws a jspException saying “No Collection Found” for the Iterator.
As this may be of use, I’m attaching a bit more code. cfZipCodes is an array of strings in the SellerBean. In the java file, the bean is added by the line
request.setAttribute("seller", seller);
where seller is a SellerBean.
<html:select name="addSellerForm" property="cfZipCodes" multiple="true" size="7">
<logic:iterate name="seller" property="cfZipCodes" id="zipIter">
<bean:define id="tmp" name="zipIter" toScope="request"/>
<!-- This is the offending line of code -->
<html:option value="<%=tmp%>"><bean:write name="zipIter"/></html:option>
</logic:iterate>
</html:select>
Again, thanks for any help you can give.