title: Custom Login Page Spring Security
body: <p>Hi I am new to spring security and I am trying to implement multiple authentication manager for multiple Login Page. But I am stuck as I am not able to create a customized login page.This is my Security.xml</p>
  
  <pre><code>&lt;http auto-config='true' use-expressions="true" authentication-manager-ref="customAuthenticationManager1" &gt;
  
  &lt;intercept-url pattern="/**" access="isAuthenticated()" /&gt;
  &lt;form-login
  login-page='/Admin_Login.jsp'
  login-processing-url="/j_spring_security_check.action"
  default-target-url="/home.jsp"
  always-use-default-target="true"/&gt;
  &lt;logout logout-success-url="/login.html" /&gt;
  
  &lt;logout /&gt;
  &lt;/http&gt;
  </code></pre>
  
  <p>My Login page is as follows :-</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;ADMIN LOGIN&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form action="/j_spring_security_check" method="POST"&gt;
  &lt;label for="username"&gt;User Name:&lt;/label&gt;
  &lt;input id="username" name="j_username" type="text"/&gt;
  &lt;label for="password"&gt;Password:&lt;/label&gt;
  &lt;input id="password" name="j_password" type="password"/&gt;
  &lt;input type="submit" value="Log In"/&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But when I try to login it is not goin into Authentication manager . Its giving </p>
  
  <p>HTTP Status 404 - /j_spring_security_check error. So can some one tell where I am going wrong.</p>