remm        02/01/30 02:57:13

  Modified:    jasper/src/share/org/apache/jasper/servlet Tag:
                        tomcat_40_branch 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
  No                   revision
  
  
  No                   revision
  
  
  1.21.2.5  +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.21.2.4
  retrieving revision 1.21.2.5
  diff -u -r1.21.2.4 -r1.21.2.5
  --- JspServlet.java   29 Nov 2001 21:08:59 -0000      1.21.2.4
  +++ JspServlet.java   30 Jan 2002 10:57:13 -0000      1.21.2.5
  @@ -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]>

Reply via email to