title: Spring + Tomcat - Disable prepended app module name in form-login
body: <p>In our Spring security XML file, I have a <code>form-login</code> configuration tag:</p>
  
  <pre><code>&lt;form-login always-use-default-target="true" 
          authentication-failure-url="/" 
          default-target-url="/bo/bo" 
          login-page="/" 
          login-processing-url="/login" 
          password-parameter="password" 
          username-parameter="login"/&gt; 
  </code></pre>
  
  <p>My app is called "myapp", and it's accessible from <code>localhost:8080/myapp</code>.</p>
  
  <p>When I successfully login, it goes to <code>localhost:8080/myapp/bo/bo</code>, which is expected.</p>
  
  <p>However, now I have a domain (say <code>mywebsite.com</code>) that points to  <code>ip:port/myapp</code> on Tomcat, and what happens now is that when I login from <code>mywebsite.com</code>, it resolves into <code>ip:port/myapp/myapp/bo/bo</code>, and you can see the double app name(myapp) in the path. The first myapp is from domain DNS redirect setting(it has to be there to run in Tomcat), and the second myapp seems somehow from default-target-url in form-login Spring security XML. </p>
  
  <p>How could I disable this behavior and get the URL resolve right to <code>ip:port/myapp/bo/bo</code>?</p>
  
  <p>[I'm CUBA-Platform which build around Spring framework.]</p>
  
  <p>Thanks,</p>