title: spring security 3 - Setting up a customized login
body: <p>I am using spring security and i am wondering how to change the default login form.</p>
  
  <p>I have set up the following configuration:</p>
  
  <pre><code>&lt;http auto-config="true" use-expressions="false"&gt;
      &lt;form-login login-processing-url="/static/j_spring_security_check"
          login-page="/login" 
          authentication-failure-url="/login?login_error=t"/&gt;         
  
      &lt;intercept-url pattern="/**"
                      access="ROLE_ADMIN" /&gt;
  &lt;/http&gt;
  </code></pre>
  
  <p>In the controller I have the following:</p>
  
  <pre><code>@Controller
  @RequestMapping("login")
  public class Logincontroller {
  /**
   * the logger used for print useful information
   */
  protected final Log logger = LogFactory.getLog(getClass());
  
  @RequestMapping(value="",method=RequestMethod.GET)
  public String showLoginView(Map&lt;String, Object&gt; model) {
      return WebappConstants.HOME_VIEW;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>However when I click a url in the browser it says The page isn't redirecting properly (Firefox). I have checked firebug and have turn on the debugger in order to effectively check that this code is not making a call to my controller. </p>
  
  <p>Am I doing somehting wrong?</p>