Dynamically generate HTML from data provided by a servlet. The template language is powerful and intuitive, the compiler is fast, and the output is close to the speed of static HTML pages.
FreeMarker is a template engine, a general-purpose tool for generating text output based on templates, written in pure Java. FreeMarker is designed to
Generate HTML web pages, especially applications based on the MVC pattern.
Although FreeMarker has some programming capabilities, the data to be displayed is usually prepared by the Java program, and the page is generated by FreeMarker through the module.
Plate displays prepared data.
FreeMarker is not a web application framework, but is suitable as a component of a web application framework.
FreeMarker is container-agnostic as it is not aware of HTTP or Servlets; FreeMarker can also be applied to non-web application environments
FreeMarker is more suitable as a view component of Model2 framework (such as Struts). You can also use JSP tag library in templates
FreeMarker is free