FileDocCategorySizeDatePackage
IfUserInRoleTag.javaAPI DocExample984Tue Feb 28 11:34:06 GMT 2006com.ora.jsp.tags

IfUserInRoleTag

public class IfUserInRoleTag extends ConditionalTagSupport
This class is a custom action for testing if the current (authenticated) user belongs to the specified security role. If he/she is, the body is evaluated. If a var attribute is provided, the result is also saved as a Boolean variable in the specified scope, or in the page if no scope is specified.
author
Hans Bergsten, Gefion software
version
3.0

Fields Summary
private String
value
Constructors Summary
Methods Summary
public booleancondition()

        HttpServletRequest request = 
            (HttpServletRequest) pageContext.getRequest();
        return request.isUserInRole(value);
    
public voidsetValue(java.lang.String value)

        this.value = value;