Inside a logic:iterate tag?
Well, the logic:iterate sets its value (id) as a
Java reference variable. As far as I know, JSTL only communicates with variables set to pageContext.
Try using a c:forEach to achieve the iterating functionality. c:forEach will set its values to pageContext so the c
ut tags can read them.
Worse case scenario you can use bean:write instead of c
ut... but I'd rather lead you towards JSTL and away from bean and logic tags.