remm 02/01/30 02:59:33 Modified: jasper/src/share/org/apache/jasper/servlet JspServlet.java Log: - If a TagLibraryValidator returns an error, Jasper will wrap the Error within HTML and throw a JasperError which will be caught by the JspServlet object. The JspServlet object will then write the content of the error without setting the content type to text/html. - Patch submitted by Ryan Lubke <rlubke at notshabby.net> Revision Changes Path 1.26 +1 -0 jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/servlet/JspServlet.java Index: JspServlet.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/servlet/JspServlet.java,v retrieving revision 1.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- JspServlet.java 29 Nov 2001 19:40:52 -0000 1.25 +++ JspServlet.java 30 Jan 2002 10:59:33 -0000 1.26 @@ -475,6 +475,7 @@ } catch (RuntimeException e) { throw e; } catch (JasperError ex) { + response.setContentType("text/html"); response.getWriter().print(ex.getMessage()); } catch (ServletException e) { throw e;
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>