Depending on the tomcat version, this might not be not needed. The
exception occurs because unknown file extensions used by includes
attempt to grab the ServletOutput stream. In a JSP page, a Writer is
already being used. Therefore bad things happened.
A patch was put in to (4.1.11 and 4.0.6)
if it is a .inc file, don't you want to use the static include (ie, before it gets
compiled)
http://java.sun.com/products/jsp/syntax/1.1/syntaxref117.html#8772
that way, the include is only called one, and compiled into your JSP
Filip
-Original Message-
From: Austin King [mailto:[EMAIL
tomcat has to be smart about file extensions, for example, if the .inc was .jsp,
tomcat would have to compile it, and then execute it.
Filip
-Original Message-
From: Filip Hanik
Sent: Friday, February 07, 2003 5:50 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: include .inc
Hi Filip,
if it is a .inc file, don't you want to use the
static include (ie, before it gets compiled)
Good point, I meant to say, I didn't think tomcat
would be smart about file extensions, beyond resolving
jsp, servlets.
Using the include directive isn't an option in this
case as I was
I agree in general. In the mean time, you can work around it by declaring:
mime-mapping
extensioninc/extension
mime-typetext/plain/mime-type
/mime-mapping
in your web.xml file (or, even, in Tomcat's default web.xml file).
Austin King [EMAIL PROTECTED] wrote in message
[EMAIL