messagesPresent - Generate the nested body content of this tag if the specified message is present in this request.

Evaluates the nested body content of this tag if an ActionMessages object, ActionErrors object, a String, or a String array is in request scope. If such a bean is not found, nothing will be rendered.

Since: Struts 1.1

Attribute Name Description
name

The parameter key to retrieve the message from request scope.

[RT Expr]
property

Name of the property for which messages should be retrieved. If not specified, all messages (regardless of property) are retrieved.

[RT Expr]
message

By default the tag will retrieve the request scope bean it will iterate over from the Globals.ERROR_KEY constant string, but if this attribute is set to 'true' the request scope bean will be retrieved from the Globals.MESSAGE_KEY constant string. Also if this is set to 'true', any value assigned to the name attribute will be ignored.

[RT Expr]