struts标签处理map中包含list 展示
来源:互联网 发布:淘宝良心二手手机店铺 编辑:程序博客网 时间:2024/06/10 18:42
代码:
<table cellspacing="0" cellpadding="0">
<tr><th style="width: 100px;">订单号</th>
<th style="width: 130px;">下单时间</th>
<th style="width: 90px;">订单金额</th>
<th style="width: 120px;">交易号</th>
<th style="width: 195px;">商品</th>
<th style="width: 100px;">商品状态</th>
<th>操作</th>
</tr>
<s:iterator value="#request.mapList" id="orderMap">
<s:set name="total" value="#orderMap.value.size"/>
<s:iterator value="#orderMap.value" status="s">
<tr>
<s:if test="#s.first"><td rowspan="${total}"><s:property value="orderInfo.code"/></td></s:if>
<td ><s:date name="orderInfo.createTime" format="yyyy-MM-dd HH:mm:ss" /></td>
<td ><s:property value="priceNormal"/></td>
<td ><s:property value="goodsTxnCode"/></td>
<td class="txt"><p style='overflow: hidden;display: inline-block;width: 150px;height: 22px;' title='<s:property value="kpiDesc"/>' ><s:property value="kpiDesc"/></p></td>
<td >
<s:if test="state<7">
<label class="green">
<s:if test="state==1">未支付</s:if>
<s:elseif test="state==2">已支付</s:elseif>
<s:elseif test="state==3">已消费</s:elseif>
<s:elseif test="state==4">已返现</s:elseif>
<s:elseif test="state==5">退货中</s:elseif>
<s:elseif test="state==6">已退货</s:elseif>
<s:elseif test="state==7">已关闭</s:elseif>
</label>
</s:if>
<s:elseif test="state==7">
<label class="gray">已关闭</label>
</s:elseif>
</td>
<td><s:if test="state==2">
<p><a href="javascript:;" class="consume blue" onclick="getInfo(this,'<s:property value="id"/>')">确认消费</a></p></s:if>
<s:if test="state==5">
<p><a href="javascript:;" class="receipt blue" onclick="getInfo(this,'<s:property value="id"/>')" >确认收货</a></p>
<p><a href="javascript:;" class="unreceipt blue" onclick="getInfo(this,'<s:property value="id"/>')">拒绝退货</a></p>
</s:if>
<a href="showOrderDetail.action?id=<s:property value='id'/>" class="blue" target="_blank">查看详情</a></td>
</tr>
</s:iterator>
</s:iterator>
</table>
结果图:
0 0
- struts标签处理map中包含list 展示
- struts 标签遍历map,value为List
- struts标签绑定Map<String, List<Map<String, Object>>>
- map形式的list集合,在struts标签中如何获取
- map形式的list集合,在struts标签中如何获取
- 在struts form中使用Map List
- struts 2 用s 标签 输出 list 里的 map
- java 中List包含List,如何添加多个list,Map中包含多个list,如何添加?
- struts标签中如何取request中map存…
- mybatis复合参数 map中包含list的参数
- MyBatis传入参数为集合 map中包含 list 数组
- 通过Struts标签和JSTL标签来遍历List<Map<String,String>>格式的数据
- s:select 标签中list存放map对象的使用
- Struts2中iterator标签遍历map list总结
- Struts2中iterator标签遍历map list总结
- Struts2中iterator标签遍历map list总结
- 关于如何使用struts标签输出值为map的list
- 将Action中的数据封装到List 或Map中展示到JSP中
- 刀片服务器和磁盘阵列卡(RAID)技术---永和维护
- Effective C++读书笔记(16)
- MySql 8小时解决方案:proxool连接池
- DSP 之实时时钟(RTC)编程
- mount umount(挂载)命令详解
- struts标签处理map中包含list 展示
- jasper报表the document has no pages的问题解决
- http://www.cnblogs.com/strivers/archive/2011/02/06/1949477.html
- as3 小知识点
- C写的单向链表List操作函数
- 单据关联关系记录
- CyclicBarrier--demo1,2,3
- iOS学习之iOS沙盒(sandbox)机制和文件操作(一)
- js浏览器兼容问题总结及解决办法