Professional Jakarta Struts (Programmer to Programmer)

 < Day Day Up > 


<html:errors />

The <html:errors /> tag is used to display the ActionError objects stored in an ActionErrors collection. The <html:errors /> tag has a body type of JSP and supports four attributes, described in Table 16.5.

Table 16.5: <html:errors /> Tag Attributes

Attribute

Description

bundle

Specifies a MessageResources key of the resource bundle defined in the struts-config <message-resource> element. The default key is ApplicationResources. (optional)

locale

Specifies the session attribute containing the Locale instance of the current request. This Locale is then used to select Locale-specific text messages. (optional)

name

Specifies the name of the request scope object that references the ActionErrors collection being displayed. The default value is Action.ERROR_KEY. (optional)

property

Specifies which error messages should be displayed, based on each property contained in the ActionErrors collection. The default value indicates that all error messages should be displayed. (optional)


 < Day Day Up > 

Категории