ga
Tag checkRole


Check to see that the current logged in user is authorized to certain role(s) (or not) before evaluating the nested tags.


Tag Information
Tag ClassNone
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
authorizedfalsefalsejavax.el.ValueExpression
(must evaluate to boolean)
A boolean value that specifies whether the user must be authorized or not authorized to match the content. Defaults to true.
messagefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
If given, the supplied message will be added if the user is not authorized.
rolestruefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
A role or a comma-separated list of roles to check for. The user must be in at least one of the given roles in order for evaluation to succeed.
severityfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
The severity of the message. If not provided, default to error. The value must be one of the following:
  • info
  • warn
  • error
  • fatal

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.