8.6
<fmt:bundle> Creates an i18n localization context to be used by its body content.
Syntax <fmt:bundle basename=”basename” [prefix=”prefix”]> body content </fmt:bundle>
Body Content JSP. The JSP container processes the body content and then writes it to the current JspWriter. The action ignores the body content.
Attributes Name
Dynamic
Type
Description
basename
true
String
Resource bundle base name. This is the bundle’s fully-qualified resource name, which has the same form as a fully-qualified class name, that is, it uses "." as the package component separator and does not have any file type (such as ".class" or ".properties") suffix.
prefix
true
String
Prefix to be prepended to the value of the message key of any nested <fmt:message> action.
Null & Error Handling ■
If basename is null or empty, or a resource bundle cannot be found, the null resource bundle is stored in the i18n localization context.
Description The <fmt:bundle> action creates an i18n localization context and loads its resource bundle into that context. The name of the resource bundle is specified with the basename attribute.
Chapter 8
Internationalization (i18n) Actions
8-89