Freemarker files generally after the prefix FTL,FTL file on the head to write
< #assign ww=jsptaglibs["/web-inf/webwork.tld"]/>
In order to use the webwork tag in FTL.
Freemarker is really a good template language engine, especially for working with object graphs, easy to process XML, and support for XPath
What is Freemarker.
Freemarker is a templating engine, a text-based template output tool (generates arbitrary HTML form code). It is a Java package, a class library for Java programmers. It is not intended for end user applications, but rather allows programmers to embed them in their products.
Freemarker is designed to generate HTML Web pages, especially applications based on the MVC (model View Controller) pattern. The idea of using the MVC pattern as a Dynamic Web page is to separate the page designer (HTML Designer) from the programmer. Everyone does the part that they are good at. Designers can change the look of a Web page without the programmer changing or modifying the code, because the application logic (Java program) and the page design (freemarker template) are separate. Templates are not corrupted by complex, cumbersome program frameworks. This separation is useful even when the programmer of a project is the same person as the creator of the HIMTL page, because it helps keep the application clear and easy to maintain.
Although Freemarker has some programming capabilities, it is not a mature programming language like PHP. Unlike Java, Java programs prepare data for display (such as SQL queries), while Freemarker only generates text pages that display preliminary data for the template.
Freemarker is not a Web application framework, but rather a role for a component in a Web application framework, but the Freemarker engine itself does not care about HTTP or servlets, it simply generates text. It can also show the perfect use in a non-WEB application environment. However, it is worth noting that we provide a convenient solution for using Freemarker as a view component of the MODEL2 framework (such as Struts), and you can also use JSP tags in templates.
Freemarker is free of charge and has bsd-style license. It is an Open-source software that is certified by OSI.