title: Why is my Spring Security Voter only called at login, not for every page access?
body: <p>I have successfully created a custom AccessDecisionVoter class and tied it into my web application through XML.</p>
  
  <p>Now I want this to be called with every page load, to make sure the user is allowed to access that specific page, not just the web site as a whole. It looks like my voter is only getting called when I log in.</p>
  
  <p>How do I get it to be called with every page?</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;security:http auto-config="true" 
                 use-expressions="true" 
                 access-decision-manager-ref="accessDecisionManager"&gt;
      &lt;security:intercept-url pattern="/login" access="permitAll" /&gt;
      &lt;security:intercept-url pattern="/statics/*" access="permitAll" /&gt;
  
      &lt;security:form-login login-page="/login"
                           authentication-failure-url="/login?error=true"
                           default-target-url="/index" /&gt;
  
      &lt;security:logout invalidate-session="true"
                       logout-success-url="/loggedout"
                       logout-url="/logout" /&gt;
  &lt;/security:http&gt;
  &lt;bean id="accessDecisionManager"
        class="org.springframework.security.access.vote.UnanimousBased"&gt;
      &lt;property name="decisionVoters"&gt;
          &lt;list&gt;
              &lt;bean class="com.tarigma.gem.security.DBVoter" /&gt;
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>