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>
  • 相关阅读:
    vi/vim 如何添加和删除多行注释
    linux报错:命令未找到
    删除远程分支的方法
    k-vim常见快捷键
    [转]常见linux命令用法介绍
    python库termcolor用法
    gitignore样例解析
    [转]"git rm" 和 "rm" 的区别
    python中的slice用法
    牛客网linux试题-错误整理-20170914
  • 原文地址:https://www.cnblogs.com/SHMILYHP/p/5392185.html
Copyright © 2011-2022 走看看