I need to define & use a collection with the months of the year, I'm sure it will take just a few lines, but i don't get it to work.
This is what i've being trying to do:
<select>
<c:forEach begin="1" end="12" var="month">
<fmt:formatDate value="${month}" pattern="MMMM"/><br>
</c:forEach>
</select>
which didn't work, and also tryed this:
<jsp:useBean id="month" class="java.util.Collection"/>
<c:set var="month[0].name" value="January"/>
<c:set var="month[1].name" value="February"/>
<select>
<c:forEach item="month" var="mon">
<option><c:out value="${mon}"></option>
</c:forEach>
</select>Thanks in advance.
