tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lar...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/context DefaultCMSetter.java
Date Fri, 06 Jul 2001 18:36:18 GMT
larryi      01/07/06 11:36:18

  Modified:    src/share/org/apache/tomcat/context Tag: tomcat_32
                        DefaultCMSetter.java
  Log:
  Add all default handlers to the context even though they may not be
  used by default due to an web.xml error mapping.  The default handler
  may be needed if there is a problem with the web.xml error mapping.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.45.2.11 +2 -2      jakarta-tomcat/src/share/org/apache/tomcat/context/Attic/DefaultCMSetter.java
  
  Index: DefaultCMSetter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/context/Attic/DefaultCMSetter.java,v
  retrieving revision 1.45.2.10
  retrieving revision 1.45.2.11
  diff -u -r1.45.2.10 -r1.45.2.11
  --- DefaultCMSetter.java	2001/03/17 20:52:49	1.45.2.10
  +++ DefaultCMSetter.java	2001/07/06 18:36:16	1.45.2.11
  @@ -94,12 +94,12 @@
   
   	// Default status handlers. If already set ( error-page in web.xml )
   	// do nothing
  +        ctx.addServlet( new RedirectHandler());
   	if( null==ctx.getErrorPage( "302" )) {
  -	    ctx.addServlet( new RedirectHandler());
   	    ctx.addErrorPage( "302", "tomcat.redirectHandler");
   	}
  +        ctx.addServlet( new NotFoundHandler());
   	if( null==ctx.getErrorPage( "404" )) {
  -	    ctx.addServlet( new NotFoundHandler());
   	    ctx.addErrorPage( "404", "tomcat.notFoundHandler");
   	}
       }
  
  
  

Mime
View raw message