Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

In SAF2Struts 2, resource bundles can be associated with classes. The framework will automatically discover and load class-orientated resource bundles. You can also specify one or more global resource bundles, which would be available to all classes in the application, using either the standard properties file, or a custom listener.

...

Global resource bundles can be specified in the actionstruts.properties configuration file.

Code Block
titleactionstruts.properties
actionstruts.custom.i18n.resources=global-messages

...

Multiple resource bundles can be specified by providing a comma-separated list.

Code Block
titleactionstruts.properties
actionstruts.custom.i18n.resources=global-messages, image-messages

...

Aside from the properties file, a Listner Listener could also be used to load global resource bundles.

...