日期:2014-05-17 浏览次数:20804 次
<c:foreach var="array" items="${list}"> <c:foreach var="Object" items="${array}"> </c:foreach> </c:forEach>
------解决方案--------------------
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
List<Object[]> list = new ArrayList<Object[]>(0);
list.add(
new Object[]{"你好","我不好"}
);
list.add(
new Object[]{"我好","你不好"}
);
request.setAttribute("list",list);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>test</title>
</head>
<body>
<table align="center" border="1">
<c:forEach items="${list}" var="objs">
<tr>
<c:forEach items="${objs}" var="val">
<td>${val }</td>
</c:forEach>
</tr>
</c:forEach>
</table>
</body>
</html>
LZ,看看这个吧。。。