Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

FreeMarker has built in support for formatting dates and numbers. The formatting rules are based on the locale associated with the action request, which is by default set in struts.properties but can be over-ridden using the I18n Interceptor. This is normally perfect for your needs, but it is important to remember that these formatting rules are handled by FreeMarker and not by the framework's Type Conversion support.

...

To extend the Freemarker support, develop a class that extends org.apache.struts2.views.freemarker.FreemarkerManager, overriding methods as needed, and plugin the class through the struts.properties:

Code Block
none
none
struts.freemarker.manager.classname = com.yourcompany.YourFreeMarkerManager

...