<#list var as map>
 <#list map?keys as itemKey> // Key points
    <#if itemKey="fieldLabel" && map['type'] == "text" >
     <td >${map[itemKey]}</td>
    <#if itemKey="java_lang_String" && map['type'] == "text">
         <td >${map[itemKey]}</td>
   <#if itemKey="fieldLabel" &&  map['type'] == "file">
     <td  >${map['fieldLabel']}</td>
    <#if itemKey="java_io_file" && map['type'] == "file">
        <td >
      <#list "${map[itemKey]}"?split(",") as x>  // Use split function , Equate to java Medium split function
        <a href="FlowDownServlet?fileName=${x}">${x}</a>
  <#if  map['type'] == "select">
   <td  >${map['fieldLabel']}</td>
   <td >
   <#list form.fields as field>
    <#if field.fieldInput.type == "select">
     <select name="props['${field.fieldName}']">
   <#list field.items as item>
     <option <#if map['java_lang_String'] == item.value>selected</#if> value="${item.value}">${item.label}</option>


Data from the background

List<LinkedHashMap<String,Object>> var = SubmitManager.getInstance().getProperty(documentId);
rootMap.put("var", var);
template.process(rootMap, out);

The source of the original text is http://blog.csdn.net/lsh6688/article/details/17091277

freemarker Middle traversal list<map<String,String>> More articles about

  1. Freemarker Middle traversal List And the use of built-in functions

    stay Freemarker It is often traversed in applications List Get the data you need , After sorting and processing the required data, it is presented to the user . So in Freemarker How to traverse List, Also on List How about sorting the data in the database properly ? One . Free ...

  2. js in list and map also string Part of the operation

    1. establish list Or array var list = []; list Add elements to it :list.push("hello");    If it is not defined as an array type first, it cannot be used push Method Judge list ...

  3. Freemarker How to traverse List

     Freemarker How to traverse List( Source code attached ) key word (Keyword):Freemarker,Freemarker Traverse list stay Freemarker It is often traversed in applications List Get the data you need , ...

  4. Java Middle traversal ConcurrentHashMap Four ways of

    // Mode one : stay for-each Use in loop entries To traverse System.out.println(" Mode one : stay for-each Use in loop entries To traverse "); for(Map ...

  5. JAVA in List transformation String,String transformation List,Map transformation String,String transformation Map Conversion classes between

    <pre name="code" class="java"></pre><pre name="code" cl ...

  6. jsp Page traversal List&lt;Map&lt;String,Object&gt;&gt;

    This kind of result will appear in multi table joint query , The basic solution is double traversal , obtain map,entry.value Other methods . It turns out that you can use c:forEach Single traversal ,map Medium key Value capitalization , You can get object. Co ...

  7. introduction :Java Map&lt;String,String&gt; Traverse and modify

    a key : In the use of Map Pay attention to key-value,key Used to retrieve value The content of . Under normal circumstances , No repetition is allowed : stay java Divided into 2 Medium condition , One is memory address duplication , The other is different addresses, but the contents are equal . In the use of Map It's one ...

  8. Paging query and paging cache query ,List&lt;Map&lt;String, Object&gt;&gt; Ergodic and Map Traverse

    Paging query String sql = " Return all eligible records to be paged SQL sentence "; int start = (page - 1) * limit + 1; int end = pag ...

  9. List&lt;Map&lt;String,String&gt;&gt; operation ( Traverse , Compare )

    1.List<Map<String,String>> The traversal : Map<String,String> map = new HashMap<String, Str ...

Random recommendation

  1. OGRE Start up process details (OGRE HelloWorld Program principle analysis )

    In this paper, OGRE 3D 1.9 Starting process of the program , From the start of the program to 3D Graphic presentation , What's behind it OGRE The relevant code is executed . It will involve OGRE Class includes : Root RenderSystem RenderWindow ...

  2. myeclipse ctrl + Mouse click appear source not found

    Sometimes we download one in the directory src Folder , Inside is the source code , Not packaged jar or zip file .src The source code in the directory is stored according to the package structure , such as a.java The first line is package test; So in src/t ...

  3. NOI2018 Get ready Day9

    tjvj The Qingbei entrance test has been on for another morning , Violent search got some points ,dp It all collapsed ,8 I've got a problem 500 branch . I played a speed race in the afternoon , The results are unknown , In addition, I did 1 Problem , This efficiency low To explode !!!

  4. The beauty of the leaderboard ——CSS Counter

    The pit I met Little friends, do you have the following situations , Top of the list 3 The style of names is different , How do you deal with it ?

  5. be based on ubuntu14 Visual recognition table tennis _1

    Serial port communication ,opencv3.0 The window size is adjustable compile cmake ../ make ./color It's stable in normal light , Circle finding is more accurate . The program sets the radius of the circle and the minimum distance between the centers of the circle , To meet the needs of the product , It can be repaired by itself ...

  6. 201521123032 《Java Programming 》 The first 3 Weekly learning summary

    1. This week's learning summary Learning object-oriented , I will learn a lot of fragmented concepts and knowledge . Try to learn how to use mind maps to break up these concepts . Knowledge is organized . Please use pen and paper or the following tools to draw the knowledge points learned this week . Take a picture or upload it . 2. In writing ...

  7. vue Component reference on demand ,vue-router Lazy loading ,vue Package optimization , Loading animation

    When you package and build an application ,Javascript The bag will get very big , Affects page loading . If we can divide the components corresponding to different routes into different code blocks , Then the corresponding component is loaded when the route is accessed , It's more efficient . combination Vue Of   asynchronous ...

  8. Oracle 11g Database creation

    Because it's self-study Oracle, If there are questions , Please point out , thank you ! Oracle Provides DBCA To create a database , For beginners, use DBCA Creating a database simplifies a lot of work and setup , All functions can be realized directly in the interactive interface . However, yes. ...

  9. caffe error

    some caffe error It explodes quickly in training ,loss Soar to nan If you can't find the reason in the data , You can doubt caffe There's a problem with the framework , Try another version . For example, the problem I encountered was that I used Accuracy layer , And the reality of this layer ...

  10. Leetcode 74

    class Solution { public: bool searchMatrix(vector<vector<int>>& matrix, int target) ...