netui:errors Tag

<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:

Attributes

bundleThe message bundle where the error message can be found
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

localeThe session attribute key for the locale
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

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