<#list var as map>
<tr>
<#list map?keys as itemKey> // Key points
<#if itemKey="fieldLabel" && map['type'] == "text" >
<td >${map[itemKey]}</td>
</#if>
<#if itemKey="java_lang_String" && map['type'] == "text">
<td >${map[itemKey]}</td>
</#if>
<#if itemKey="fieldLabel" && map['type'] == "file">
<td >${map['fieldLabel']}</td>
</#if>
<#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>
</#list>
</td>
</#if>
</#list>
<#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>
</#list>
</select>
</#if>
</#list>
</td>
</#if>
</tr>
</#list>
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
- 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 ...
- 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 ...
- 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 , ...
- 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 ...
- 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 ...
- jsp Page traversal List<Map<String,Object>>
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 ...
- introduction :Java Map<String,String> 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 ...
- Paging query and paging cache query ,List<Map<String, Object>> 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 ...
- List<Map<String,String>> operation ( Traverse , Compare )
1.List<Map<String,String>> The traversal : Map<String,String> map = new HashMap<String, Str ...
Random recommendation
- 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 ...
- 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 ...
- 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 !!!
- 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 ?
- 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 ...
- 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 ...
- 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 ...
- 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. ...
- 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 ...
- Leetcode 74
class Solution { public: bool searchMatrix(vector<vector<int>>& matrix, int target) ...