kinman      02/05/06 16:32:42

  Modified:    jasper/src/share/org/apache/jasper/runtime
                        PageContextImpl.java
  Log:
  - Modified to keep Jon (the Java style police) happy.  :)
  
  Revision  Changes    Path
  1.17      +11 -3     
jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/runtime/PageContextImpl.java
  
  Index: PageContextImpl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- PageContextImpl.java      15 Dec 2001 00:15:48 -0000      1.16
  +++ PageContextImpl.java      6 May 2002 23:32:42 -0000       1.17
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
 1.16 2001/12/15 00:15:48 kinman Exp $
  - * $Revision: 1.16 $
  - * $Date: 2001/12/15 00:15:48 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
 1.17 2002/05/06 23:32:42 kinman Exp $
  + * $Revision: 1.17 $
  + * $Date: 2002/05/06 23:32:42 $
    *
    * ====================================================================
    *
  @@ -460,6 +460,14 @@
            if (t instanceof IOException) throw (IOException)t;
            if (t instanceof ServletException) throw (ServletException)t;
               if (t instanceof RuntimeException) throw (RuntimeException)t;
  +            if (t instanceof JspException) {
  +                Throwable rootCause = ((JspException)t).getRootCause();
  +                if (rootCause != null) {
  +                    throw new ServletException(t.getMessage(), rootCause);
  +                } else {
  +                    throw new ServletException(t);
  +             }
  +            }
            throw new ServletException(t);
        }
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to