title: How to get 403 access denied with spring security?
body: <p>I never get 403, it always redirects me to root url or I can specify access denied page which is depreciated. Which is ok, but still why?  I want to undertsand its behavior why other people here get this exception?</p>
  
  <pre><code>&lt;security:http auto-config="true" use-expressions="true" &gt;
      &lt;security:form-login login-processing-url="/static/j_spring_security_check" login-page="/login" authentication-failure-url="/login?login_error=t"  default-target-url="/home"/&gt;
      &lt;security:intercept-url pattern="/home" access="isAuthenticated()" /&gt;
      &lt;security:intercept-url pattern="/home/try" access="hasRole('ROLE_EDITOR')"/&gt;
  
  &lt;/security:http&gt;
  </code></pre>
  
  <p>And what is the benefit of using access-denied-handler?</p>