Agregar valores al arraylist use JSTL
¿Es posible agregar valores a un ArrayList en lugar de usar un HashMap?
algo como:
<jsp:useBean id="animalList" class="java.util.ArrayList" />
<c:set target="${animalList}" value="Sylvester"/>
<c:set target="${animalList}" value="Goofy"/>
<c:set target="${animalList}" value="Mickey"/>
<c:forEach items="${animalList}" var="animal">
${animal}<br>
</c:forEach>
ahora obteniendo el error:
javax.servlet.jsp.JspTagException: Invalid property in <set>: "null"
Gracias