Versions Compared

Key

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

Defining Formats

Struts2 supports 1ocalization (l10n) aware formatting of dates, times and numbers very easily, utilizing Java's built-in date formatting features.

...

As seen in the Localization chapter, it is quite easy to define hierarchical resource bundles with Struts2, giving the developer the opportunity to define locale dependent message formats. This is the entry point to define the needed date, time and number formats. Your default properties could contain the following generic formats:

...