Displays a set of error messages prepared by a business logic component and stored in EMFErrorHandler
object as an EMFAbstractError
. If EMFErrorHandler.isOk()
return is true nothing will be rendered. Optionally a category
and/or severity
attributes can be provided; in this case only error messages with specified category and/or severity will be rendered. See EMFErrorCategory
and EMFErrorSeverity
for correct values for corresponding attributes.
In order to use this tag successfully, you must have defined an application scope bundle, with optional definitions of message keys specified in the following attributes:
Attributes |
Name | Required | Request-time | Type | Description |
bundle | false | true | java.lang.String | The servlet context attribute key for the MessageResources instance to use. If not specified, defaults to the application resources configured for our action servlet. |
category | false | true | java.lang.String | If valorized, only error messages with the corresponding category will be rendered (See EMFErrorCategory ) |
severity | false | true | java.lang.String | If valorized, only error messages with the corresponding severity will be rendered (See EMFErrorSeverity ) |
footer | false | true | java.lang.String | This value is an optional message resource key that will be printed after the iteration of error messages has finished. Defaults to "errors.footer" if not specified. - Since:
- Struts 1.2.5
|
header | false | true | java.lang.String | This value is an optional message resource key that will be printed before the iteration of error messages begins. Defaults to "errors.header" if not specified. - Since:
- Struts 1.2.5
|
locale | false | true | java.lang.String | The session attribute key for the Locale used to select messages to be displayed. If not specified, defaults to the Struts standard value. |
name | false | true | java.lang.String | Name of the bean (in any scope) under which our error messages have been stored. If not present, the name specified by the Globals.ERROR_KEY constant string will be used. |
prefix | false | true | java.lang.String | This value is an optional message resource key that will be printed before an error message. Defaults to "errors.prefix" if not specified. - Since:
- Struts 1.2.5
|
property | false | true | java.lang.String | Name of the property for which error messages should be displayed. If not specified, all error messages (regardless of property) are displayed. |
suffix | false | true | java.lang.String | This value is an optional message resource key that will be printed after an error message. Defaults to "errors.suffix" if not specified. - Since:
- Struts 1.2.5
|