freemarker nested

FreeMarker

1, FreeMarker template file has four main components 1, text, direct the output part of the 2, notes that the format does not output <#--...--> 3, Interpolation (Interpolation): namely, ${..} or #{..} form part of the data model will be used in a pa

freemarker Study Notes

The variables defined in the template There are three types: Quote 1: plain variables: you can access from anywhere in the template, including the use of include directives into the template, use the assign command to create and replace. 2: Local variable

freemarker to implement a custom label (2.3.11 version of the later method)

FreeMarker 2.3.11 version of the future provide a new custom label interface TemplateDirectiveModel to replace TemplateTransformModel, Here is a custom label converting the contents of the body of the letters to uppercase letters example: Demo01.ftl ...

freemarker to implement a custom label (including the processing parameters and cycle variables) (2.3.11 version of the later method)

Repeat.ftl template file is as follows: Output Results:

freemarker basic grammar (reproduced)

FreeMarker template file is not much more complicated than the HTML page, FreeMarker template file mainly by the following four components: 1, text: Direct output part of the 2, comments :<#-- ... - "format section, not the output 3, interpolation

FreeMarker Introduction

FreeMarker is a template engine, a template generates text output based on a common tool, written using pure Java FreeMarker is designed to generate HTML Web pages, especially in applications based on MVC pattern Although FreeMarker has some programm ...

rapid_framework.freemarker error extendsDirective

Solution: Because the default rapid_framework 3.5.0.1 download package is not put on freemarker jar added lib can org.springframework.beans.factory.CannotLoadBeanClassException: Error loading cl ass [cn.org.rapid_framework.freemarker.directive.ExtendsDire

freemarker basic syntax

1. Insert ( Export )${book.name} Null value judgments :${book.name?if_exists }, ${book.name?default('xxx')}// Default xxx ${ book.name!"xxx"}// Default xxx Date Format :${book.date?string('yyyy-MM-dd')} Digital format :${book?string.number}--20 ${boo

JSP Velocity Freemarker comparison

JSP has been the De facto standard for Java and web development for years. JSP is one of the first popular dynamic web application frameworks. Since then as architecture models have evolved. PHP has taken a foothold in the simple dynamic web applicat

freemarker basic grammar

Syntax used EG. An object BOOK 1. Output $ (book.name) Null value judgments: $ (book.name? If_exists), $ (Book.name? Default ('xxx')}// default xxx $ (Book.name! "Xxx") / / default value xxx Date format: $ (book.date? String ('y

FreeMarker Design Guide (full order)

FreeMarker Design Guide 1 Getting Started (1) template + data model = output l FreeMarker is based designers and programmers have expertise in different individuals with different ideas l They are division of labor: the designers focus on that - create HT

FreeMarker concept of learning

FreeMarker Overview: Quote 1. FreeMarker is a template engine, a template generates text output based on a common tool, using pure Java. 2. FreeMarker is designed to generate HTML Web pages, especially in applications based on MVC pattern 3. FreeMark

FreeMarker macro (macro) used

Some people say that with freemarker, but it does not use macros (macro), on = not really used freemarker. Said that the macro is a major feature of freemarker. Macro definition can view the document, which describes very clearly the following look a

FreeMarker tags used

1, FreeMarker template file has four main components 1, text, part of the direct output 2, note that the format does not output <#--...--> 3, Interpolation (Interpolation): that is part of ${..} or #{..} format, will use the data model part of the a

freemarker Study Notes - command reference

1: if command: <# If condition> ... <# Elseif condition2> ... <# Elseif condition3> ... ... <# Else> ... </ # If> 2: switch <# Switch value> <# Case refValue1> ... <# Break> <# Case refValue2> ... <

freemarker from the trial to give up

Two days before the weekend at home without incident, think of the previous project was developed based on struts2, struts2 in another in the extensive use of the freemarker, so want to have to try next freemarker. In struts2's guide article, exp

freemarker basic instructions

A: if command: <# If condition> ... <# Elseif condition2> ... <# Elseif condition3> ... ...<# Else> ... </ # If> Second: switch <# Switch value> <# Case refValue1 >...<# break> <# Case refValue2 >

The use of macros defined in Freemarker

Freemarker macros One. What is the macro: macro Quote Macro is used in the template definition of macro commands Basic Usage A macro is a variable associated with the template and the fragment to a template by using the user-defined instructions to use th

freemarker getting started manual

freemarker official document http://freemarker.sourceforge.net/docs/index.html (1) template + = output FreeMarker data model designers and programmers are based on different professional skills of different individuals of the concept of division of labor,

Freemarker syntax summary of a comprehensive

Syntax FreeMarker template file is not much more complicated than the HTML page, FreeMarker template file by the following four main components: 1. Text: the part of the direct output 2. Note: <# - ... -> format section, not output 3. Interpolation:

Freemarker macros based on the use Struts2 data and the separation of the page

Struts2 and Freemarker development in the use of time by using Freemarker macros (macro) to achieve separation of data and the effect of the page so that page developers and business developers to separate the background and improve the business code

Development of commonly used open source J2EE project

Read other people's records, feel good, on the collection here, Original Source: http://blog.csdn.net/fenixshadow/archive/2007/11/17/1890010.aspx Persistence Layer 1: 1) Hibernate This need not introduce, and used very frequently, used more are mapped

Part I. Designed Quick Start Guide --- --- Template + data model = output

Chapter 1. Quick Start Quick Start Template + data model = output Template + data model = output FreeMarker is based on an idea: designers and developers are different people, they were good at different skills. Ideally, designers should focus attent ...

Struts 2

* 1 Struts 2 o 1.1 Struts 2 environment + Class Library 1.1.1 complete list + Foundation class library 1.1.2 list + 1.1.3 basic configuration o 1.2 configuration file o 1.3 Action o 1.4 I18N/I10N o 1.5 blocker + 1.5.1 elements # 1.5.1.1 in implementation

Struts 2 environment

Struts 2 environment Download library: http://192.168.16.240/source/struts-2.0.11.1-lib.zip A complete list of libraries antlr-2.7.2.jar commons-beanutils-1.6.jar commons-chain-1.1.jar commons-logging-1.0.4.jar commons-logging-api-1.1.jar commons-validato

Form validation for the improvement webwork

First, came in. The most recent use webwork are more in use, there are some ideas, such as form validation, action the use of, webwork of URL formats. The meeting to form ideas and practices in this area briefly summarize. I shall first look at the system

Struts2 Study Notes

1. Struts2 seems little kinship with Struts1, and commitments from in WebWork, direct harm WebWork is no longer a new version of the original WebWork users only need to shun their natural, that is, drainage into the watercourse; on the contrary Struts1 th

Struts2 + Spring + hibernate package needed

1. //struts2 The core package 2. struts2-core-2.0.11.2.jar 3. 4. //struts2 You must (strust2 webwork Upgrades, webwork core package ) 5. xwork-2.0.5.jar 6. 7. //struts2 You must 8. freemarker-2.3.8.jar 9. 10. //struts2 You must 11. ognl-2.6.11.jar 12. 13.

Development of common open source J2EE Projects

I know mainly on J2EE development framework or open-source project to be a description, you can choose according to the demand for development of appropriate open-source components. Mainly in Spring core, but also summarizes some previously popular open s

Faramita draft language design 0.1 - truly mobile code (mobile code)

Faramita draft language design 0.1 Advertising language (not really): The real mobile code (mobile code), a real distributed computing Abbreviation explanation: RPC: Remote Procedure Call Remote Call DSL: Domain Specific Language Domain Specific Languages

Opentaps Page Principles

In getCategoriesList.ftl file the following code: <@ Import location = "component: / / opentaps-common/webapp/common/includes/lib/opentapsFormMacros.ftl" /> <div> <@ Paginate name = "layerCategories" list = categori ...

Dwell on the core concepts Struts2

This article is reproduced Office: http://www.javasuper.com/a/jishuwendang/2010/0324/54.html This article will examine the core Struts2 concept, first introduced the Struts2 architecture and several important configuration files, and will illustrate how t

combination of servlet and freeMark

Controller by the servlet implementation, pages completed by the freeMark. The first example: test.ftl as follows: servlet as follows: web.xml configuration is as follows: Test: The second example: (get, set methods of dispense, auxiliary classes) Co ...

struts 2 configuration Xiangjie

struts2 complete list of libraries Reprinted: http://blog.chinaunix.net/u2/66172/showart_1962866.html antlr-2.7.2.jar commons-beanutils-1.6.jar commons-chain-1.1.jar commons-logging-1.0.4.jar commons-logging-api-1.1.jar commons-validator-1.3.0.jar freemar

Jar contains the meaning of commonly used J2EE

Ssh in this article refers to: struts2, srping2.5, hibernate3.2 struts2 must JAR package (6): struts2-spring-plugin-2.0.11.2.jar xwork-2.0.5.jar struts2-core-2.0.11.2.jar freemarker-2.3.8.jar ognl-2.6.11.jar commons-logging-1.0.4.jar (and hibernate3. ...

freemaker Study Notes - Design Guidance

<# ...> All freemaker stored in the content, the content of all stood outside the output. <@ ... /> Is the function call within the content of the two delimiters, the first sign that command or function name, then the following parameters. fre

java - web exception summary

java.lang.NoClassDefFoundError: antlr / ANTLRException Use Struts + Hibernate's HibernateDaoSupport of getHibernateTemplate (). Find (HQL) query, always report this error: java.lang.NoClassDefFoundError: antlr / ANTLRException Search a bit antlr ...

SS2 jar package configuration

ssh2 jar package configuration Ssh in this article refers to: struts2, srping2.5, hibernate3.2 struts2 to JAR package (6): struts2-spring-plugin-2.0.11.2.jar xwork-2.0.5.jar struts2-core-2.0.11.2.jar freemarker-2.3.8.jar ognl-2.6.11.jar commons-loggi ...

[Change] Spring integration velociy / freemaker related configuration

Spring Framework Developer Reference: 14.4. Velocity and FreeMarker Velocity and FreeMarker are two templating languages that can be used as view technologies within Spring MVC applications. Their language style and applies to the object are very similar,

More velocity script

# Set ($ admin = "admin") # Set ($ user = "user") # If ($ admin = = $ user) Welcome admin! # Else Welcome user! # End Implementation of the run command, the result: Welcome user! Judgement statement can be seen simply # if (), # e

Generate an infinite-level components with dTree navigation tree

Doing management systems inevitably use the navigation tree, so long as such a good thing, you can run anywhere, at present the better components dTree, in principle, to infinite order, of course, actual operation level 4,5 had a lot of the, dTree sp

Jquery datatables content plug-ins to achieve a fixed header scrollable list

Recently with Jquery datatables Plugin + freemarker + Struts2 development of a data list of components. As to the components of the system to use the function module is not the amount of data involved, in order to facilitate an intuitive, unified not do p

Reprinted application jBPM4 settlement process with Chinese characteristics needs (after reading strongly recommended)

JBoss jBPM is one of the many open source projects, open source workflow projects, is currently the most widely used workflow project. In this year's July 10, JBoss jBPM team officially released jBPM4 official version. jBPM4 process based entirely on

Dwell on the core concepts of Struts2 (Go to the programmer House http://www.sunxin.org)

This article will examine the core concepts of Struts2, first introduced the Struts2 architecture and several important configuration files, and will illustrate how to configure Struts2 core object. Struts2 then introduced the most important component of

Dwell on the core concept of Struts2 (Go programmers House http://www.sunxin.org)

This article will examine the core Struts2 concept, first introduced the Struts2 architecture and several important configuration files, and will illustrate how to configure Struts2 core object. Then describes the most important three Struts2 part of Acti

Spring mailing solutions for common errors during the

In preparation for the following procedures related to the process of mailing solutions made in error under the induction The first org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'freeMarker' defined in class p

Summary SSH interview questions

Summary SSH interview questions MVC 1. Talk about your understanding of mvc MVC is the Model-View-Controler for short. The Model - View - Controller. MVC is a design pattern that the mandatory application of the input, processing and output separately. MV

hibernate common exceptions

/ If not, start without errors, but the use of Dwr, it will throw an exception: java.lang.NoClassDefFoundError: antlr / ANTLRException antlr-2.7.2.jar / / If not this pack, will be thrown at startup: nested exception is java.lang.NoClassDefFoundError: org
Recent
Recent Entries
Tag Cloud
Random Entries