tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From man...@hyperreal.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/jasper/runtime JspServlet.java
Date Mon, 18 Oct 1999 17:40:57 GMT
mandar      99/10/18 10:40:57

  Modified:    src/share/org/apache/jasper/runtime JspServlet.java
  Log:
  code-cleanup.
  took HandleErrorPageException out.
  should also delete the java source for it... will do.
  
  Revision  Changes    Path
  1.4       +4 -24     jakarta-tomcat/src/share/org/apache/jasper/runtime/JspServlet.java
  
  Index: JspServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/runtime/JspServlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JspServlet.java	1999/10/17 22:21:32	1.3
  +++ JspServlet.java	1999/10/18 17:40:56	1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/runtime/JspServlet.java,v
1.3 1999/10/17 22:21:32 mandar Exp $
  - * $Revision: 1.3 $
  - * $Date: 1999/10/17 22:21:32 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/runtime/JspServlet.java,v
1.4 1999/10/18 17:40:56 mandar Exp $
  + * $Revision: 1.4 $
  + * $Date: 1999/10/18 17:40:56 $
    *
    * ====================================================================
    * 
  @@ -341,27 +341,7 @@
               }
   
               serviceJspFile(request, response, jspUri, null, preCompile(request));
  -
  -	} catch (HandleErrorPageException ex) {
  -	    try {
  -		if (ex.errorPage.endsWith(".html") || 
  -		    ex.errorPage.endsWith(".htm")) 
  -		{
  -		    String rdir = new File(request.getPathInfo()).getParent();
  -		    String path = rdir + ex.errorPage;
  -		    response.sendRedirect(path);
  -		}
  -		else {
  -                    String errorPage = ex.errorPage;
  -                    if (!ex.errorPage.startsWith("/")) {
  -                        File jspFile = new File(request.getServletPath());
  -                        errorPage = jspFile.getParent()+File.separatorChar+ex.errorPage;
  -                    }
  -		    serviceJspFile(request, response, errorPage, ex.exception, false);
  -		}
  -	    } catch (Throwable t) {
  -		unknownException(response, t);
  -	    }
  +	    
   	} catch (RuntimeException e) {
   	    throw e;
   	} catch (ServletException e) {
  
  
  

Mime
View raw message