<netui:error> Tag

Renders an error message with a given error key value if that key can be found in the ActionErrors registered in the PageContext at org.apache.struts.action.Action.ERROR_KEY.

Syntax

<netui:error
    [bundle="bundle"]
    [locale="locale"]
    value="value" />

Description

Renders an error message with a given error key value if that key can be 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:

Attributes
bundle
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable:

locale
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable:

value
Required: Yes  |   Supports runtime evaluation: Yes  |   Data bindable:

The value for getting the error key

 
Example

In this sample, the "InvalidName" message from the errorMessages bundle will be used to output the error.

 <netui:error bundle="com.project.errorMessages" value="InvalidName"/>