<%@ page contentType="text/html;charset=UTF-8" language="java" %>//contentTypecharsetָ͸ͻʱݱ
<%@ taglib prefix="c" uri="http://jakarta.apache.org/taglibs/core" %>//ǩǰ׺ <%@ taglib prefix="c" uri="/WEBINF/tld/core"> jspҳоͿʹ <c:out> <c:if>֮ıǩ 
<%@ taglib prefix="d" uri="/dynabeans" %>

<html>
  <head>
    <title>Results Page</title>
  </head>
  <body bgcolor="white">
    <table border="1">

      <d:properties var="properties" item="${requestScope.results[0]}"/>

      <tr>//ڱжһС
        <c:forEach var="property" items="${properties}">//<c:forEach> ΪѭƣԽ(Collection)еĳԱѭһ顣ʽΪʱͻظִ<c:forEach>ıݡ
          <th><c:out value="${property.name}"/></th>//<c:out>ǩʾʽֵthڵıͷԪ񡣴th ԪڲıͨΪ塣
        </c:forEach>//Ǳ̨ݡ
      </tr>

      <c:forEach var="result" items="${requestScope.results}">
        <tr>
          <c:forEach var="property" items="${properties}">
            <td><d:getProperty name="${property.name}" item="${result}"/></td>
          </c:forEach>
        </tr>
      </c:forEach>

    </table>
  </body>
</html>
