<c:forEach var="i" begin="1" end="7" items="${i}"> <c:forEach var="j" begin="1" end="${i}" items="${j}"> <c:out value="*" /> </c:forEach> </c:forEach>这段代码怎么修改呀?我想用JSTL+EL打印出一个三角形
<c:forEach var="i" begin="0" end="6" items="<%=new int[]{1,2,3,4,5,6,7,8}%>"><c:forEach var="j" begin="1" end="${i}" items="<%=new int[]{1,2,3,4,5,6,7,8}%>"><c:out value="*" /></c:forEach></c:forEach>打印结果:* * * * * * * * * * * * * * * * * * * * * * * * * * * * 注意:items一定要是个数组或是集合