kinman 02/05/06 13:07:43
Modified: jasper2/src/share/org/apache/jasper/runtime
PageContextImpl.java
Log:
- Fixed 5998. Thanks [EMAIL PROTECTED] for the patch.
Revision Changes Path
1.4 +10 -3
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java
Index: PageContextImpl.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- PageContextImpl.java 25 Apr 2002 18:16:06 -0000 1.3
+++ PageContextImpl.java 6 May 2002 20:07:43 -0000 1.4
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
1.3 2002/04/25 18:16:06 kinman Exp $
- * $Revision: 1.3 $
- * $Date: 2002/04/25 18:16:06 $
+ * $Header:
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
1.4 2002/05/06 20:07:43 kinman Exp $
+ * $Revision: 1.4 $
+ * $Date: 2002/05/06 20:07:43 $
*
* ====================================================================
*
@@ -468,6 +468,13 @@
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]>