阅读背景:

struts2中的jsp页面通过iterator调取后台action中的list集合

来源:互联网 

jsp页面:

<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head></head>
<body>
<h1>数据展示</h1>
<h2>
   <table border="1" width="50%"  cellspacing="0" cellpadding="0">           
    <s:iterator value ="#session.tZhengtiDataList" var="mycontent" status="indexValue">   
      <tr>
     <td><s:property value="#mycontent.statisticTime" /></td> 
     <td><s:property value="#mycontent.area"/></td>    
     <td><s:property value="#mycontent.insurBody"/></td>    
     <td><s:property value="#mycontent.preminum"/></td>
     </tr>
     </s:iterator>  


    </table>   
</h2>


</body>
</html><%@ page contentType="text/html; ch



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: