concept localized text in category java
appears as: localized text

This is an excerpt from Manning's book Struts 2 in Action.
Table 7.2. Common attributes for all UI tags
Attribute
Theme
Data type
Description
name simple String Sets name attribute of the form input element. Also propagates to the value attribute of the component, if that attribute isn’t set manually. The name itself is used by the component to target a property on the ValueStack as destination for the posted request parameter value. value simple Object OGNL expression pointing to ValueStack property used to set the value of the form input element for prepopulation. Defaults to the name attribute. key simple String Pulls localized label from ResourceBundle, and can propagate to name attribute, and thus to value attribute. See chapter 11. label XHTML String Creates an HTML label for the component. Not needed if setting using the key attribute and localized text. labelPosition XHTML String Location of the element label: left or top. required XHTML Boolean If true, an asterisk appears next to the label indicating the field is required. By default, the value is true if a field-level validator is mapped to the field indicated in the name attribute. id simple String HTML id attribute. Components will create a unique ID if one isn’t specified. IDs are useful for both JavaScript and CSS. cssClass simple String HTML class attribute, for CSS. cssStyle simple String HTML style attribute, for CSS. disabled simple Boolean HTML disabled attribute. tabindex simple String HTML tabindex attribute. theme N/A String Theme under which component should be rendered, such as xhtml, css_xhtml, ajax, simple. Default value is xhtml, set in default.properties. templateDir N/A String Used to override the default directory name from which templates will be retrieved. template N/A String Template to look up to render the UI tag. All UI tags have a default template (except the component tag), but the template can be overridden.
Once we’re confident that the right locale is set, we can start to pull text from our bundles. In addition to the text tag and the getText() method, the framework provides several other convenient means of pulling localized text from our bundles.