action里面的赋值,
List <TaskLogDTO> logDTO = new ArrayList <TaskLogDTO>();
BsEmployeeDAO bsEmployeeDAO = new BsEmployeeDAO();
for (TaskLogs log : logs) {
logDTO.add(TaskLogDTO.newInstance(bsEmployeeDAO.getNameById(log.getEmpId()), log));
}
request.setAttribute("logsList", logDTO);
下面是jsp里面的jstl内容, 还是非常简单的, 我赞啊!!
看来以后要以标签为伍了, ^_^
<c:forEach var="log" items="${logsList}">
<tr>
<td>
<c:out value="${log.logDate}" />
</td>
<td>
<c:out value="${log.empName}" />
</td>
<td>
<c:out value="${log.taskDescription}" />
</td>
<td>
<c:out value="${log.caseEditingTime}" />
</td>
<td>
<c:out value="${log.caseRunningTime}" />
</td>
<td>
<c:out value="${log.otherTime}" />
</td>
</tr>
</c:forEach>
posted on 2007-07-10 09:44
冰封的爱 阅读(3422)
评论(1) 编辑 收藏 所属分类:
J2EE