真是搞不懂了,关于Iterator的问题
<%
if (ittrain!=null){
Dayteamtrain dayteamtrain = new Dayteamtrain();
while (ittrain.hasNext()) {
dayteamtrain = (Dayteamtrain)ittrain.next();
%>
<TR bgcolor= "#FFFFFF ">
<TD width= "8% " align=center bgcolor= "F7FAFF "> <%=dayteamtrain.getTeacher() %> </TD>
<TD bgcolor= "F7FAFF "> <%=dayteamtrain.getTrainaddr()%> </TD>
<TD height= "25 " bgcolor= "F7FAFF "> <%=dayteamtrain.getTraincontent()%> </TD>
<TD height= "25 " align=center bgcolor= "F7FAFF "> <%=dayteamtrain.getTraintime()%> </TD>
<TD align=center bgcolor= "F7FAFF "> <%=dayteamtrain.getActor()%> </TD>
<TD height= "25 " align=center bgcolor= "F7FAFF "> </TD>
</TR>
<%
}
}
%>
为何我页面上显示了两行都是第一条数据?
[解决办法]
ittrain的实现有问题呀
[解决办法]
好象没问题啊