| < Day Day Up > |
|
The <html:messages /> tag is used to display a collection of messages stored in an ActionErrors, ActionMessages, String, or String array object. The <html:messages /> tag has a body type of JSP and supports eight attributes, described in Table 16.14.
Attribute | Description |
---|---|
id | Identifies the scripting variable containing the current message to be displayed. (required) |
bundle | Names a key, stored in the ServletContext, that will point to the ResourceBundle used when retrieving messages. If not indicated, then the default ResourceBundle is used. (optional) |
locale | Indicates the Locale key to use when retrieving messages. If this value is not set, then the standard Struts method of determining the Locale is used. (optional) |
name | Identifies the scripting variable containing the collection of messages to be displayed. The default value is Action.ERROR_KEY. (optional) |
property | Identifies an input property for which retrieved messages should be displayed. If no value is indicated, then all messages are rendered. (optional) |
header | An optional Resource key that is printed prior to the collection of messages. This is often a handy place to include list formatting. (optional) |
footer | An optional Resource key that will be printed after the collection of messages. This is often a handy place to include list formatting. (optional) |
message | If set to true, then the Globals.MESSAGE_KEY is used to retrieve the request scoped bean as opposed to the Globals.ERROR_KEY. (optional) |
| < Day Day Up > |
|