org.springframework.web.servlet.view.freemarker |
Support classes for the integration of
FreeMarker
as Spring web view technology.
Contains a View implementation for FreeMarker templates.
|
Java Source File Name | Type | Comment |
FreeMarkerConfig.java | Interface | Interface to be implemented by objects that configure and manage a
FreeMarker Configuration object in a web environment. |
FreeMarkerConfigurer.java | Class | JavaBean to configure FreeMarker for web usage, via the "configLocation"
and/or "freemarkerSettings" and/or "templateLoaderPath" properties.
The simplest way to use this class is to specify just a "templateLoaderPath";
you do not need any further configuration then.
<bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
<property name="templateLoaderPath"><value>/WEB-INF/freemarker/</value></property>
</bean>
This bean must be included in the application context of any application
using Spring's FreeMarkerView for web MVC. |
FreeMarkerView.java | Class | View using the FreeMarker template engine. |
FreeMarkerViewResolver.java | Class | Convenience subclass of UrlBasedViewResolver that supports FreeMarkerView
(i.e. |