<netui:errors> Tag
Renders the set of error messages found in the ActionMessages
registered in the PageContext
at org.apache.struts.action.Action.ERROR_KEY.
<netui:errors
[bundleName="bundleName"]
[locale="locale"] />
Renders the set of error messages found in the ActionMessages
registered in the PageContext
at org.apache.struts.action.Action.ERROR_KEY.
The following optional message keys will be utilized if corresponding
messages exist for them in the application resources:
- errors.header - If present, the corresponding message will be
rendered prior to the individual list of error messages.
- errors.footer - If present, the corresponding message will be
rendered following the individual list of error messages.
- errors.prefix - If present, the corresponding message will be
rendered before each individual error message.
- errors.suffix - If present, the corresponding message will be
rendered after each individual error message.
Attributes |
bundleName |
Required: No | Supports
runtime evaluation / JSP Expression Language: Yes |
|
The name of the message bundle, as defined in the page flow's
Jpf.MessageBundle annotation. This defaults to org.apache.struts.action.Action.MESSAGES_KEY. |
locale |
Required: No | Supports
runtime evaluation / JSP Expression Language: Yes |
|
The name of the session attribute key for the user's locale.
This defaults to org.apache.struts.action.Action.LOCALE_KEY. |
In this sample, the messages from the errorMessages
bundle will be used to
output the errors.
<netui:errors bundleName="errorMessages" />