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}'>
  • 相关阅读:
    Vue源码解析-源码目录及源码调试运行
    Vue.js源码解析-从scripts脚本看vue构建
    ps 命令显示不完整的问题
    Linux中10个实用命令,千万不要错过
    Linux 下如何使用 fc 和 alias 命令
    Mac 查看正在后台运行(显示)的程序
    Mac 显示桌面
    Mac如何批量关闭同一个程序
    Mac 选中删除
    Mac 中 vscode 打开项目文件夹
  • 原文地址:https://www.cnblogs.com/xlj227/p/9121111.html
Copyright © 2011-2022 走看看