owners.jsp
上传用户:dezhong
上传日期:2022-08-10
资源大小:167k
文件大小:1k
源码类别:

Java编程

开发平台:

Java

  1. <%@ include file="/WEB-INF/jsp/includes.jsp" %>
  2. <%@ include file="/WEB-INF/jsp/header.jsp" %>
  3. <h2>Owners:</h2>
  4. <table>
  5.   <tr>
  6.   <thead>
  7.     <th>Name</th>
  8.     <th>Address</th>
  9.     <th>City</th>
  10.     <th>Telephone</th>
  11.     <th>Pets</th>
  12.   </thead>
  13.   </tr>
  14.   <c:forEach var="owner" items="${selections}">
  15.     <tr>
  16.       <td>
  17.           <a href="owner.do?ownerId=${owner.id}">${owner.firstName} ${owner.lastName}</a>
  18.       </td>
  19.       <td>${owner.address}</td>
  20.       <td>${owner.city}</td>
  21.       <td>${owner.telephone}</td>
  22.       <td>
  23.         <c:forEach var="pet" items="${owner.pets}">
  24.           ${pet.name} &nbsp;
  25.         </c:forEach>
  26.       </td>
  27.     </tr>
  28.   </c:forEach>
  29. </table>
  30. <%@ include file="/WEB-INF/jsp/footer.jsp" %>