<%@ page import="java.util.*,
                 com.oreilly.jent.transactionsdemo.domain.PersonValue"%><html>
    <body>
        <table>
            <tr>
                <th>Person Id</th>
                <th>email</th>
                <th>Work Phone</th>
                <th>Home Phone</th>
                <th>Person Status Id</th>
                <th>Person Status</th>
                <th>Person Status Comment</th>
            </tr>
            <%
                Collection c = (Collection) request.getAttribute("persons");
                if (c != null) {
                    Iterator i = c.iterator();
                    while (i.hasNext()) {
                        PersonValue aValue = (PersonValue) i.next();
            %>
                        <tr>
                            <td><%= aValue.getPersonId() %></td>
                            <td><%= aValue.getEmail() %></td>
                            <td><%= aValue.getWorkPhone() %></td>
                            <td><%= aValue.getHomePhone() %></td>
                            <td><%= aValue.getPersonStatusValue().getId() %></td>
                            <td><%= aValue.getPersonStatusValue().getStatus() %></td>
                            <td><%= aValue.getPersonStatusValue().getStatusComment() %></td>
                        </tr>
            <%

                    }
                }
            %>
        </table>
    </body>
</html>