# <netui:errors> Tag

Renders the set of error messages found in the ActionErrors registered in the `PageContext` at org.apache.struts.action.Action.ERROR_KEY.

## Syntax

<netui:errors
[bundle="string_bundle"]
[locale="string_locale"] />

## Description

Renders the set of error messages found in the ActionErrors 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

bundle | The message bundle where the error message can be found
Required | Supports runtime expression evaluation | Data bindable
No | No | No
locale | The session attribute key for the locale
Required | Supports runtime expression evaluation | Data bindable
No | No | No

## Sample

In this sample, the messages from the `errorMessages` bundle will be used to output the errors.

     <netui:errors bundle="com.project.errorMessages" />

## Code Sample

[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/struts/validation/basic/formPage.jsp [BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/struts/validation/validator/formPage.jsp

## Related Topics

Form Validation Sample

<netui:error> Tag