zoukankan      html  css  js  c++  java
  • ${}中嵌套${}

    后台中 

    req.setAttribute("workAreaList",workAreaList);
    req.setAttribute("tPdmisMonreportPage", tPdmisMonreport);
    -------------------------解释说明---------------------------
    workAreaList是List<T> T实体类中有一个字段叫exp1,里面存了1/2/3(类似排序字段)
    tPdmisMonreport也是一个List<T> T实体类中的字段是这样的 tld1。tld2、tld3、epd1、epd2、epd3等等

    前台中
    我要实现按照 workAreaList循环 显示出tPdmisMonreport中的字段
    也就是用exp1的值“1” 替代 tld1中的“1”

    ---------------------------------------------------------------
    <c:forEach items="${workAreaList}" var="workArea">
    <c:set var='tld' value="tld${workArea.exp1}" scope="page"/>
    <c:set var='epd' value="epd${workArea.exp1}" scope="page"/>
      <input id="${tld}" name="${tld}" type="text" style=" 150px;display: none" class="inputxt"  value='${tPdmisMonreportPage[tld]}'>
      <input id="${epd}" name="${epd}" type="text" style=" 150px;display: none" class="inputxt"  value='${tPdmisMonreportPage[epd]}'>
    </c:forEach>

    ||
    <input id="tld1" name="tld1" type="text" style=" 150px;display: none" class="inputxt"  value='${tPdmisMonreportPage.tld1}'>
    <input id="tld2" name="tld2" type="text" style=" 150px;display: none" class="inputxt"  value='${tPdmisMonreportPage.tld2}'>
    <input id="tld3" name="tld3" type="text" style=" 150px;display: none" class="inputxt"  value='${tPdmisMonreportPage.tld3}'>
    <input id="epd1" name="epd1" type="text" style=" 150px;display: none" class="inputxt"  value='${tPdmisMonreportPage.epd1}'>
    <input id="epd2" name="epd2" type="text" style=" 150px;display: none" class="inputxt"  value='${tPdmisMonreportPage.epd2}'>
    <input id="epd3" name="epd3" type="text" style=" 150px;display: none" class="inputxt"  value='${tPdmisMonreportPage.epd3}'>
  • 相关阅读:
    Linux 开机启动 php socket
    Linux 判断进程是否运行
    应用容器公共免费部署平台
    dos2unix 批量转化文件
    django中多个app放入同一文件夹apps
    django无法同步mysql数据库 Error:1064
    cos migration工具webhook推送
    腾讯云 COS 对象存储使用
    docker nginx 运行后无法访问
    makefile中 = := += 的区别
  • 原文地址:https://www.cnblogs.com/xlj227/p/9121111.html
Copyright © 2011-2022 走看看