DisplayCollection.jsp
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:1k
源码类别:
Java编程
开发平台:
Java
- <%@ page import="java.util.*" info="JavaCamp.com - DisplayCollection.jsp " %>
- <html>
- <body>
- <table border="5">
- <tr>
- <th>List of Primary Keys for company <font size="4"> <%=request.getAttribute("companyName")%></font>
- </th>
- </tr>
- <% ArrayList coll = (ArrayList)request.getAttribute("pKeyList");
- if ( !coll.isEmpty() )
- {
- Iterator it = coll.iterator();
- while (it.hasNext() )
- {
- bmpsample.StudentBmp stud = (bmpsample.StudentBmp)it.next();
- String pKey = (String) stud.getPrimaryKey();
- %>
- <tr>
- <td><%=pKey%> </td>
- </tr>
- <%
- }
- }
- else
- {
- %>
- <td>
- <h3> Empty collection </h3>
- </td>
- </tr>
- <%
- }
- %>
- </table>
- <p>
- <center>
- <a href="/Reg/Student.html">Add Another Student classes</a>
- </center>
- </body>
- </html>