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 webworkaction.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 WebWork's Type Conversion support.

...

To do so, write a new class that extends com.opensymphony.webwork.views.freemarker.FreemarkerManager and overrides it as needed. Then add the following to webworkaction.properties:

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

...