markt 2004/04/09 09:42:29 Modified: jasper2/src/share/org/apache/jasper/runtime Tag: tomcat_4_branch PageContextImpl.java Log: - Fix bug19049. Clarify error message when nesting exceptions. - Patch provided by Joseph Shraibman. - Ported from TC5. Revision Changes Path No revision No revision 1.11.2.9 +5 -4 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.11.2.8 retrieving revision 1.11.2.9 diff -u -r1.11.2.8 -r1.11.2.9 --- PageContextImpl.java 9 Apr 2004 16:40:13 -0000 1.11.2.8 +++ PageContextImpl.java 9 Apr 2004 16:42:29 -0000 1.11.2.9 @@ -534,7 +534,8 @@ if (t instanceof JspException) { Throwable rootCause = ((JspException)t).getRootCause(); if (rootCause != null) { - throw new ServletException(t.getMessage(), rootCause); + throw new ServletException(t.getClass().getName() + ": " + + t.getMessage(), rootCause); } else { throw new ServletException(t); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]