<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ taglib prefix="s" uri="/struts-tags" %> <table> <c:forEach items="${requestScope.存在request中的List}" var="father" varStatus="status"> <tr> <td><span> <c:forEach begin="0" end="0" items="${father.images }" var="child" varStatus="status"> <!-經過foreach控制輸出數組中的起始位置和結束位置-> <img alt="${child.url}" src="upload/${child.url}"> </c:forEach></span> </tr> </c:forEach> </table>