present (Struts EL Tag library documentation)

Overview | Library | Tag | Help

| FRAMES NO FRAMES

## logic
Tag present

Generate the nested body content of this tag if the specified value is present in this request.

Depending on which attribute is specified, this tag checks the current request, and evaluates the nested body content of this tag only if the specified value is present. Only one of the attributes may be used in one occurrence of this tag, unless you use the `property` attribute, in which case the `name` attribute is also required.

Tag Information
Tag Class | org.apache.strutsel.taglib.logic.ELPresentTag
TagExtraInfo Class | None
Body Content | JSP
Display Name | None

Attributes
Name | Required | Request-time | Type | Description
cookie | false | true | `java.lang.String` | Checks for the existence of a cookie with the specified name.
header | false | true | `java.lang.String` | Checks for the existence of an HTTP header with the specified name. The name match is performed in a case insensitive manner.
name | false | true | `java.lang.String` | Checks for the existence of a JSP bean, in any scope, with the specified name. If `property` is also specified, checks for a non-null property value for the specified property.
parameter | false | true | `java.lang.String` | Checks for the existence of at least one occurrence of the specified request parameter on this request, even if the parameter value is a zero-length string.
property | false | true | `java.lang.String` | Checks for the existence of a non-null property value, returned by a property getter method on the JSP bean (in any scope) that is specified by the `name` attribute. Property references can be simple, nested, and/or indexed.
role | false | true | `java.lang.String` | Checks whether the currently authenticated user (if any) has been associated with any of the specified security roles. Use a comma-delimited list to check for multiple roles. Example: `<logic-el:present role="role1,role2,role3"> code..... </logic-el:present>`
scope | false | true | `java.lang.String` | The bean scope within which to search for the bean named by the `name` property, or "any scope" if not specified.
user | false | true | `java.lang.String` | Checks whether the currently authenticated user principal has the specified name.

Variables
No Variables Defined.

Overview | Library | Tag | Help

| FRAMES NO FRAMES

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.