enrollment.jsp
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:1k
源码类别:
Java编程
开发平台:
Java
- <!-- day 21 exercise -->
- <html>
- <head>
- <title>Enrollments Page</title>
- </head>
- <%@ page errorPage="error.jsp" %>
- <%@ page import="java.util.*,day21ex.enrollment.EnrollmentDetails"%>
- <h3>Enrollments List</h3>
- <table border=1>
- <tr>
- <th><b>Course Id</b></th>
- <th><b>Course Name</b></th>
- </tr>
- <%
- Collection enrollments
- = (java.util.Collection) session.getAttribute("enrollmentsList");
- if ( enrollments != null ) {
- Iterator it = enrollments.iterator();
- while ( it != null && it.hasNext() ) {
- EnrollmentDetails enrollmentDetails = (EnrollmentDetails)it.next();
- %>
- <tr>
- <td><%= enrollmentDetails.getCourseId() %> </td>
- <td> <%= enrollmentDetails.getCourseName() %> </td>
- </tr>
- <%
- }
- }
- %>
- </table>
- Pls click here to browse the <a href="/ursday21ex/URSControllerServlet?pageName=catalogPage">catalog page</a>
- </body>
- </html>