logic
Tag match


Evaluate the nested body content of this tag if the specified value is an appropriate substring of the requested variable.

Matches the variable specified by one of the selector attributes (as a String) against the specified constant value. If the value is a substring (appropriately limited by the location attribute), the nested body content of this tag is evaluated.



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

Attributes
NameRequiredRequest-timeTypeDescription
cookiefalsetruejava.lang.String

The variable to be matched is the value of the cookie whose name is specified by this attribute.

headerfalsetruejava.lang.String

The variable to be matched is the value of the header whose name is specified by this attribute. The name match is performed in a case insensitive manner.

locationfalsetruejava.lang.String

If not specified, a match between the variable and the value may occur at any position within the variable string. If specified, the match must occur at the specified location (either start or end) of the variable string.

namefalsetruejava.lang.String

The variable to be matched is the JSP bean specified by this attribute, if property is not specified, or the value of the specified property of this bean, if property is specified.

parameterfalsetruejava.lang.String

The variable to be matched is the first, or only, value of the request parameter specified by this attribute.

propertyfalsetruejava.lang.String

The variable to be matched is the property (of the bean specified by the name attribute) specified by this attribute. The property reference can be simple, nested, and/or indexed.

scopefalsetruejava.lang.String

The bean scope within which to search for the bean named by the name property, or "any scope" if not specified.

valuetruetruejava.lang.String

The constant value which is checked for existence as a substring of the specified variable.


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.