zoukankan      html  css  js  c++  java
  • jsp 页面使用标签遍历

    <tbody>
                    <c:forEach items="${page.list}" var="exhiMain">
                        <c:set var="exhihuiLv" value="${fns:getDictLabel(exhiMain.huiLvValue,'hui_lv','1') }" />
                        <c:set value="${exhiMain.zhanweiTypes }" var="zhanweiTypesList" />
                        <tr>
                            <td>${exhiMain.id }</td>
                            <td>
                                <div class="col_content" style=" 197px" title="${exhiMain.tiMu}">${exhiMain.tiMu}</div>
                            </td>
                            <td title="${fns:getDictLabel(exhiMain.hangYe, 'hang_ye', '')}">${fns:getDictLabel(exhiMain.hangYe, 'hang_ye', '')}</td>
                            <td>${fns:getDictLabel(exhiMain.area, 'five_continents', '')}</td>
                            <td class="moreCol createDate"><fmt:formatDate value="${exhiMain.juBanTime }" pattern="yyyy-MM-dd HH:mm" /></td>
                            <td class="moreCol createDate"><fmt:formatDate value="${exhiMain.signEndTime }" pattern="yyyy-MM-dd HH:mm" /></td>
                            <td><c:forEach items="${zhanweiTypesList}" var="zhanweiType">
                                 ${fns:getDictLabel(zhanweiType.cuXiaoType, 'zhan_wei_cu_xiao', '')}
                            </c:forEach></td>
                            <td><c:forEach items="${zhanweiTypesList}" var="zhanweiTypes">
                                    <c:choose>
                                        <c:when test="${zhanweiTypes.cuXiaoType=='tejia'}">
                                ${zhanweiTypes.teJiaPrice*exhihuiLv*0.1 }
                                </c:when>
                                        <c:when test="${zhanweiTypes.cuXiaoType=='tuangou'}">
                                 ${zhanweiTypes.tuanGouPrice*exhihuiLv*0.1 }
                                </c:when>
                                    </c:choose>
                                </c:forEach>
                                </td>
                            <td>推广链接</td>
                            <td><a href="${ctx }/fenxiao/fenXiaoSave?exhiId=${exhiMain.id}" onclick="return confirmx('确认要分销该展览吗?', this.href)">我要分销</a> <%-- <c:if test="${fns:getUserRole()!='30'}">
                                     <a href="${ctx }/fenxiao/fenXiaoTuiJianSave?exhiId=${exhiMain.id}" onclick="return confirmx('确认要推荐分销该展览吗?', this.href)">推荐分销</a>
                            </c:if> --%>
                            <td>
                        </tr>
                    </c:forEach>
                </tbody>
  • 相关阅读:
    MySQL binlog 组提交与 XA(两阶段提交)
    mydumper 安装报错处理
    安装 gcc-c++ 时报错和原有 gcc 版本冲突
    mysql / mysqld_safe / mysqld 常见错误处理
    Linux 内核日志——dmesg
    Java中的Atomic包
    JAVA NIO中的Channels和Buffers
    字节流InputStream/OutputStream
    字符输出流Writer简要概括
    字符输入流Reader简要概括
  • 原文地址:https://www.cnblogs.com/SHMILYHP/p/5392185.html
Copyright © 2011-2022 走看看