title: Spring security intercept-url pass pattern parameter to access method
body: <p>In spring security, we can limit access to certaiin web resources using this construct:
  <code>&lt;intercept-url pattern="/admin.xhtml" access="hasPermission('admin')" /&gt;</code></p>
  
  <p>Now, I have a lot of pages, to access each, one should have special permission with same name as the page name. <code>intercept-url</code> accepts pattern but doesn't seem to provide parameter passing from regex matched groups in <code>pattern</code> to <code>access</code>. I want something like this:</p>
  
  <pre><code>&lt;intercept-url pattern="/([a-z]+).xhtml" access="hasPermission('$1')" /&gt;
  </code></pre>