<!-- Load our custom tag library -->
<%@ taglib prefix="jent" uri="taglibs/jent-profile.tld" %>
<!-- Import the core JSTL tags -->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<title>View A Profile</title>
</head>

<!-- Start the body of the page -->
<body bgcolor="#FFFFFF" text="#000000" link="#330099" vlink="#666666">
  <!-- Get the user's profile, store in a page variable named "profile" -->
  <jent:profile userName="jim" varName="profile"/>
  <table width="100%" border="0">
    <tr>
      <td colspan="2" align="center">
        Profile for <c:out value="${profile.name}"/>
      </td>
    </tr>
    <c:forEach var="eName" items="${profile.entryNames}">
      <c:set var="key" value="${eName}" scope="request"/>
      <c:set var="prof" value="${profile}" scope="request"/>
      <tr bgcolor="#FFCCCC">
        <td align="center"><c:out value="${eName}"/></td>
        <td align="center"><%= prof.getEntry(key) %></td>
      </tr>
    </c:forEach>
  </table>
</body>
</html>
