tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dun...@hyperreal.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core InvokerServlet.java
Date Sat, 16 Oct 1999 01:32:04 GMT
duncan      99/10/15 18:32:04

  Modified:    src/share/org/apache/tomcat/core InvokerServlet.java
  Log:
  Changed doError() to use sendError() instead of trying to roll its own.
  Avoids 403 "Invoker could not find a servlet" error msg, replaces it
  with good ol' 404.
  
  Submitted by:	Jason Hunter, jch@eng.sun.com
  
  Revision  Changes    Path
  1.2       +4 -10     jakarta-tomcat/src/share/org/apache/tomcat/core/InvokerServlet.java
  
  Index: InvokerServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/InvokerServlet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InvokerServlet.java	1999/10/09 00:30:12	1.1
  +++ InvokerServlet.java	1999/10/16 01:32:03	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/InvokerServlet.java,v
1.1 1999/10/09 00:30:12 duncan Exp $
  - * $Revision: 1.1 $
  - * $Date: 1999/10/09 00:30:12 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/InvokerServlet.java,v
1.2 1999/10/16 01:32:03 duncan Exp $
  + * $Revision: 1.2 $
  + * $Date: 1999/10/16 01:32:03 $
    *
    * ====================================================================
    *
  @@ -261,12 +261,6 @@
   
       public void doError(HttpServletResponse response)
       throws ServletException, IOException {
  -        response.setStatus(403);
  -	response.setContentType("text/html");
  -
  -	PrintWriter out = response.getWriter();
  -
  -	out.println("<html><body>Invoker could not find a servlet</body>");
  -	out.println("</html>");
  +        response.sendError(404);
       }    
   }
  
  
  

Mime
View raw message