Announcement Announcement Module
Collapse
No announcement yet.
Logical Operators in Web Security Expressions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Logical Operators in Web Security Expressions

    In the following documentation (http://static.springsource.org/sprin...#el-access-web), I see "and" and "or" being used in an expression to obtain a value for access.

    What is the syntax for negation? I've tried "!" and "not", but neither seem to work. Below is a snippet of code that doesn't seem to work. Thanks in advance for your help.

    Code:
    <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
    <sec:authorize access="!hasRole('ROLE_BASICUSER')">
     <button name="not a basic user" />
    </sec:authorize>
    Last edited by logicg8; Apr 12th, 2011, 07:23 PM.
Working...
X