Yeah, see my last post. Since JSP output is written with a PrintWriter, the
Catalina code is restricting it to only being able to output known text/*
MIME types. This just doesn't "feel" right to me.

Thanks,
--jeff

----- Original Message -----
From: "Micael Padraig Og mac Grene" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 07, 2001 7:40 PM
Subject: Re: Unable to include *.sum files (Again)


>
>
> At 02:21 PM 12/7/01 -0800, you wrote:
> >Hi Micael,
> >
> >Let's make sure we're talking about the same thing. If I include a file
> >like:
> >
> ><jsp:include page="./testTxt.sum" flush="true" />
> >
> >Why does it matter what the file extension of the included file is? Isn't
> >the container just supposed to open the file and output it's contents at
> >that particular spot in my JSP? Now, I agree that the contents of the
> >included file will be affected by the MIME type of the response -- how
the
> >browser views those contents. If you include a file that doesn't match
the
> >MIME type of your response, it may not appear correctly in your browser.
But
> >that's not the point.
> >
> >The JSP spec says the "page" attribute must evaluate to a String that is
a
> >relative URL specification. When I pull up the testTxt.sum file in my
> >browser, it displays correctly (it's only one line of text...). So, I
should
> >be able to include it in my JSP with the jsp:include directive. When I
> >change the extension to .txt, .html, or .jsp it works. Anything else,
even
> >other registered MIME types like .doc, and it doesn't. (ok, I didn't try
> >them ALL...  :)
> >
> >I think this is a bug. The old Java Web Server used to have a similar bug
> >where it would only include .htm and .html files.
> >
> >--jeff
>
> Before I look further, have you looked at the source code to see why this
> is happening?
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to