You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by cr...@locus.apache.org on 2000/03/31 22:59:46 UTC

cvs commit: jakarta-tomcat/src/examples/jsp/security/login error.jsp

craigmcc    00/03/31 12:59:46

  Modified:    src/examples/WEB-INF web.xml
  Added:       src/examples/jsp/security/login error.jsp
  Log:
  Add a <form-error-page> declaration to the examples web.xml file, and the
  corresponding error page itself.
  
  NOTE:  It appears that the current implementation does not actually respect
  this -- it just redisplays the login page when you type a wrong username or
  password.  I will look into this as well.
  
  PR: 146
  Submitted by: Larry.Isaacs@sas.com
  
  Revision  Changes    Path
  1.5       +3 -1      jakarta-tomcat/src/examples/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/examples/WEB-INF/web.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- web.xml	2000/03/31 15:50:08	1.4
  +++ web.xml	2000/03/31 20:59:45	1.5
  @@ -68,7 +68,9 @@
       <login-config>
         <auth-method>FORM</auth-method>
         <realm-name>examples</realm-name>
  -      <form-login-config><form-login-page>/jsp/security/login/login.jsp</form-login-page>
  +      <form-login-config>
  +        <form-login-page>/jsp/security/login/login.jsp</form-login-page>
  +        <form-error-page>/jsp/security/login/error.jsp</form-error-page>
         </form-login-config>
       </login-config>
   
  
  
  
  1.1                  jakarta-tomcat/src/examples/jsp/security/login/error.jsp
  
  Index: error.jsp
  ===================================================================
  <html>
  <head>
  <title>Login Error</title>
  </head>
  <body bgcolor=white>
  Login error -- please try <a href="login.jsp">again</a>.
  </body>
  </html>