This tag check its nested body contents for the presence of specific value upon request.
Attributes of <Logic:Present> Tag
<logic:present cookie>
It checks for the existence of a specified cookie.
<logic:present header>
It checks the existence of an HTTP Header with the specified name.(Its Not case Sensitive)
<logic:present name>
It checks the existence of a JSP bean, in any scope, with the specified name. It will also check for null values.
<logic:present parameter>
It checks 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.
It checks 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 attribute. Property references can be simple, nested, and/or indexed.
<logic:present role>
It 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.
<logic:present scope>
The bean scope within which to search for the bean named by the property, or "any scope" if not specified.
It checks whether the currently authenticated user principal has the specified name.

No comments:
Post a Comment