title: Error using Spring authorize tag to check to see if user is logged in?
body: <p>Trying to test to see if a user is logged in  I am using the following code:</p>
  
  <pre><code>&lt;%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %&gt;
  
  &lt;sec:authorize access="isAuthenticated()"&gt;
     YES, you are logged in!
  &lt;/sec:authorize&gt;
  </code></pre>
  
  <p>But I am getting the following erorr?</p>
  
  <pre><code>javax.servlet.jsp.JspException: No visible WebSecurityExpressionHandler instance could be found in the application context. There must be at least one in order to support expressions in JSP 'authorize' tags.
          at org.springframework.security.taglibs.authz.AuthorizeTag.getExpressionHandler(AuthorizeTag.java:100)
          at org.springframework.security.taglibs.authz.AuthorizeTag.authorizeUsingAccessExpression(AuthorizeTag.java:58)
          at org.springframework.security.taglibs.authz.AuthorizeTag.doStartTag(AuthorizeTag.java:48)
  </code></pre>