logic
Tag messagesPresent


Generate the nested body content of this tag if the specified message is present in any scope.

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

Since:
Struts 1.1


Tag Information
Tag Classorg.apache.struts.taglib.logic.MessagesPresentTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
namefalsetruejava.lang.String

The parameter key used to retrieve the message from page, request, session, or application scope.

propertyfalsetruejava.lang.String

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

messagefalsetruejava.lang.String

By default the tag will retrieve the bean it will iterate over from the Globals.ERROR_KEY constant string, but if this attribute is set to 'true' the 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.


Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.