如题,最好附一段样例代码,加详细的解释哈~~~

解决方案 »

  1.   

    <table border="1">
        <tr>
        <th>编号</th>
        <th>飞机编号</th>
        <th>时间</th>
        <th>价格</th>
        <th>所属公司</th>
        </tr>
        <c:forEach var="fligth" items="${fligthList}">
        <tr>
        <td>${fligth.corporationId }</td>
        <td>${fligth.fligthNo }</td>
        <td>${fligth.fligthTime }</td>
        <td>${fligth.fligthPrice }</td>
        <td>${fligth.corporationName }</td>
        </tr>
        </c:forEach>
        </table>
      

  2.   


    就是这样,,,,,,{fligthList}是在servlet中传过来的一个list集合,
      

  3.   

    2楼和3楼的代码都是jstl标签实现的所以楼主还要学习一下jstl语法,那就容易理解了。。
      

  4.   

    <logic:iterate id="errordata"  name="errorinfo">

       <bean:write name="errordata" property="errormessage" />
    </logic:iterate>
      

  5.   

     <logic:present name="ban">
                 <logic:iterate name="ban" id="list"><td bgcolor="#E6E6FA"><bean:write name="list" property="zaotui_time" /></td>
                     <td bgcolor="#E6E6FA"><bean:write name="list" property="add_time" /></td>  </logic:iterate>
            </logic:present>