可以获取数据,但打印结果全为null
<%
int count=0;
if (session.getAttribute("count")!= null )
{
count = Integer.parseInt((String)session.getAttribute("count"));
out.println(count);
String subject[] = new String[count+1];
String name[] = new String[count+1];
String time[] = new String[count+1];
time[count] = (String)session.getAttribute("time[count]");
name[count] = (String)session.getAttribute("name[count]");
subject[count] = (String)session.getAttribute("subject[count]");
//for (int i = 0 ; i < time.length ; i++)
//out.println(time[i]);
for (int i = 0 ; i < count+1 ; i++)
{
%>
<table width="768" border="1" align="center">
<tr bgcolor="#CCCCCC">
<td> <%=subject[i]%></td>
<td> <%=name[i]%></td>
<td> <%=time[i]%></td>
</tr>
</table>
<%}}%>