title: Spring Security grails login redirect
body: <p>I'm using spring security on my grails app and want to to this:</p>
  
  <p>My Homepage is : <a href="http://www.test.com:8080/my-app/" rel="nofollow">http://www.test.com:8080/my-app/</a> this is the index.gsp</p>
  
  <p>Now I have insert a login form in the index.gsp file:</p>
  
  <pre><code>&lt;form action='${postUrl}' method='POST' id='loginForm' class='cssform' autocomplete='off'&gt;
  &lt;p&gt;
  &lt;label for='username'&gt;&lt;g:message code="springSecurity.login.username.label"/&gt;:&lt;/label&gt;
  &lt;input type='text' class='text_' name='j_username' id='username'/&gt;
  &lt;/p&gt;
  
  &lt;p&gt;
  &lt;label for='password'&gt;&lt;g:message code="springSecurity.login.password.label"/&gt;:&lt;/label&gt;
  &lt;input type='password' class='text_' name='j_password' id='password'/&gt;
  &lt;/p&gt;
  &lt;p id="remember_me_holder"&gt;
  &lt;input type='checkbox' class='chk' name='${rememberMeParameter}' id='remember_me' &lt;g:if test='${hasCookie}'&gt;checked='checked'&lt;/g:if&gt;/&gt;
  &lt;label for='remember_me'&gt;&lt;g:message code="springSecurity.login.remember.me.label"/&gt;&lt;/label&gt;
  &lt;/p&gt;
  
  &lt;p&gt;
  &lt;input type='submit' id="submit" value='${message(code: "springSecurity.login.button")}'/&gt;
  &lt;/p&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Now when I insert the username and password I want to redirect to url : <a href="http://www.test.com:8080/my-app/customer/list" rel="nofollow">http://www.test.com:8080/my-app/customer/list</a></p>
  
  <p>How can I do this?</p>