在/c:forEach中如何定义数组变量,请jstl高手指导
<%
String[] colors = new String[] { "red", "green", "yellow", "black","silver" };
pageContext.setAttribute("colors", colors);
%>
<c:forEach var="color" items="${pageScope.colors}">
<c:if test="${color=='yellow'}">
<c:out value="${color}" />
</c:if>
</c:forEach>