title: Issue with Spring security's logout
body: <p>I've got a problem logging out in Spring framework.</p>
  
  <p>First when I want j_spring_security_logout to handle it for me i get 404 j_spring_security_logout not found:
  sample-security.xml:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;http&gt;
      &lt;intercept-url pattern="/messageList.htm*" access="ROLE_USER,ROLE_GUEST" /&gt;
      &lt;intercept-url pattern="/messagePost.htm*" access="ROLE_USER" /&gt;
      &lt;intercept-url pattern="/messageDelete.htm*" access="ROLE_ADMIN" /&gt;
      &lt;form-login login-page="/login.jsp" default-target-url="/messageList.htm"
          authentication-failure-url="/login.jsp?error=true" /&gt;
      &lt;logout/&gt;
  &lt;/http&gt;
  </code></pre>
  
  <p>Sample url link to logout in JSP page:</p>
  
  <pre class="lang-jsp prettyprint-override"><code>&lt;a href="&lt;c:url value="/j_spring_security_logout" /&gt;"&gt;Logout&lt;/a&gt;
  </code></pre>
  
  <p>When i try to use a custom JSP page i.e. I use login form for this purpose then I get better result at least it gets to login page, but another problem is that you dont't get logged off as you can diretcly type url that should be guarded buy you get past it anyway.</p>
  
  <p>Slightly modified from previous listings:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;http&gt;
      &lt;intercept-url pattern="/messageList.htm*" access="ROLE_USER,ROLE_GUEST" /&gt;
      &lt;intercept-url pattern="/messagePost.htm*" access="ROLE_USER" /&gt;
      &lt;intercept-url pattern="/messageDelete.htm*" access="ROLE_ADMIN" /&gt;
      &lt;form-login login-page="/login.jsp" default-target-url="/messageList.htm"
          authentication-failure-url="/login.jsp?error=true" /&gt;
      &lt;logout logout-success-url="/login.jsp" /&gt;
  &lt;/http&gt;
  </code></pre>
  
  <pre class="lang-jsp prettyprint-override"><code>&lt;a href="&lt;c:url value="/login.jsp" /&gt;"&gt;Logout&lt;/a&gt;
  </code></pre>
  
  <p>Thank you for help</p>