List中存放一个Map,利用<s:iterator/>标签显示例子如下:

其中detailList是List的名字(必须和后台返回的List名字相同),hashMap是其中存放的Map的一个代号。

#hashMap.seatseat是Map中的key。

  1.      < s:iterator   value = "detailList"   id = "hashMap" >
  2.          < tr >
  3.              < td > < s:property   value = "#hashMap.seat"   />   </ td >
  4.              < td > < s:property   value = "#hashMap.specialOffer"   />   </ td >
  5.              < td > < s:property   value = "#hashMap.price"   />   </ td >
  6.              < td > < s:property   value = "#hashMap.preferentialPrice"   />   </ td >
  7.              < td > < s:property   value = "#hashMap.returnPoint"   />   </ td >
  8.              < td > < s:property   value = "#hashMap.remainMoney"   />   </ td >
  9.              < td > < s:property   value = "#hashMap.direction"   />   </ td >
  10.              < td > < s:property   value = "#hashMap.releaseMan"   />   </ td >
  11.              < td > < input   type = "button"   value = "订票" > </ input >   </ td >
  12.          </ tr >
  13.      </ s:iterator >