weatherTable.jsp
上传用户:shen332233
上传日期:2021-09-03
资源大小:7478k
文件大小:1k
源码类别:

Ajax

开发平台:

Java

  1. <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
  2. <table>
  3.     <tbody>
  4.         <tr>
  5.             <c:forEach var="forecast" items="${forecastData.details.weatherData}">    
  6.                 <td>
  7.                     ${forecast.day}
  8.                     <br/>
  9.                     High: ${forecast.maxTemperatureF}
  10.                     <br/>
  11.                     Low: ${forecast.minTemperatureF}
  12.                     <br/>
  13.                     <img src="${forecast.weatherImage}" alt="forecast image"/>
  14.                 </td>
  15.             </c:forEach>
  16.         </tr>
  17.     </tbody>    
  18. </table>