Hi, 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.
The attached patch resolves this issue. Regards, Ryan Lubke
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 diff -u -r1.25 JspServlet.java --- JspServlet.java 29 Nov 2001 19:40:52 -0000 1.25 +++ JspServlet.java 30 Jan 2002 00:41:19 -0000 @@ -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]>