List中存放一个Map,利用<s:iterator/>标签显示例子如下:
其中detailList是List的名字(必须和后台返回的List名字相同),hashMap是其中存放的Map的一个代号。
#hashMap.seat中seat是Map中的key。
-
<
s:iterator
value
=
"detailList"
id
=
"hashMap"
>
-
<
tr
>
-
<
td
>
<
s:property
value
=
"#hashMap.seat"
/>
</
td
>
-
<
td
>
<
s:property
value
=
"#hashMap.specialOffer"
/>
</
td
>
-
<
td
>
<
s:property
value
=
"#hashMap.price"
/>
</
td
>
-
<
td
>
<
s:property
value
=
"#hashMap.preferentialPrice"
/>
</
td
>
-
<
td
>
<
s:property
value
=
"#hashMap.returnPoint"
/>
</
td
>
-
<
td
>
<
s:property
value
=
"#hashMap.remainMoney"
/>
</
td
>
-
<
td
>
<
s:property
value
=
"#hashMap.direction"
/>
</
td
>
-
<
td
>
<
s:property
value
=
"#hashMap.releaseMan"
/>
</
td
>
-
<
td
>
<
input
type
=
"button"
value
=
"订票"
>
</
input
>
</
td
>
-
</
tr
>
-
</
s:iterator
>