<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Struts 2 s:iterator tag sample code</title>
<s:head />
</head>

<body>
	<h2 style="color: green">
		<s:text name="label.welcome" />
	</h2>

	<h3 style="color: green">
		<s:text name="label.iterator" />
	</h3>
	<s:form action="iteratorTagExampleAction" namespace="/" method="post"
		name="strutsForm">
		<table cellspacing="0" cellpadding="0" border="1" width="500">
			<tr style="font-weight: bold">
				<td><s:text name="label.firstName" /></td>
				<td><s:text name="label.lastName" /></td>
				<td><s:text name="label.location" /></td>
			</tr>
			<s:iterator value="personList">
				<tr>
					<td><s:property value="firstName" /></td>
					<td><s:property value="lastName" /></td>
					<td><s:property value="location" /></td>
				</tr>
			</s:iterator>
		</table>
	</s:form>
</body>
</html>
