displaycollection.jsp

来自「100多M的J2EE培训内容」· JSP 代码 · 共 54 行

JSP
54
字号
<%@ 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>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?