A patch was put in to (4.1.11 and 4.0.6) to use a JSPWriter for unknown file extensions for includes to prevent this issue.
The bug report that caused the patch:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12771
The patch that was done:
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java.diff?r1=text&tr1=1.57&r2=text&tr2=1.58&diff_format=l
-Tim
Bill Barker wrote:
I agree in general. In the mean time, you can work around it by declaring: <mime-mapping> <extension>inc</extension> <mime-type>text/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 PROTECTED]">news:[EMAIL PROTECTED]...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 trying to include different foo.inc files at runtime. bar/foo.inc baz/foo.inc <jsp:include page="<%= barOrBaz %>"/> I didn't want to cloud the origional question with this context, I just was curious why .inc is handled differently than .txt when using jsp:include tag? Thanks again for the insight, Austin __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]