<%@ taglib uri="/mytag" prefix="m"%>
<%@ page language="java" pageEncoding="GB2312" %>
<%@ page  import ="mytag.PersonInfo" %>
<%@ page  import ="java.util.Vector" %>
<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>Iter JSP</title>
</head>
<body bgcolor="#FFFFFF">
<%
	Vector v=new Vector();
	v.add(new PersonInfo("Tom","男","1234567","tom@163.com"));
	v.add(new PersonInfo("Jom","男","2345678","jim@sohu.com"));
	v.add(new PersonInfo("赵君","女","87931452","zj@sina.com"));
	v.add(new PersonInfo("刘洋","男","13569874585","ly@hotmail.com"));
%>
<h3>我的通讯录<h3>
<hr>
<table border=1>
	<tr>
		<td>姓名</td>
		<td>性别</td>
		<td>电话</td>
		<td>电子邮件</td>
	</tr>

<m:iter name="address" vector="<%=v%>" type="mytag.PersonInfo">
	<tr>
		<td>
			<jsp:getProperty name="address" property="name"/>
		</td>
		<td>
			<jsp:getProperty name="address" property="sex"/>
		</td>
		<td>
			<jsp:getProperty name="address" property="phone"/>
		</td>
		<td>
			<jsp:getProperty name="address" property="email"/>
		</td>
	</tr>
</m:iter>
</table>
</body>
</html>
