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

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


> At 01:31 PM 12/7/01 -0800, you wrote:
> >Nope. I tried it with *.doc files, too, and it still doesn't work. *.doc
is
> >defined in web.xml.
> >
> >Besides, it doesn't really make sense for MIME types to affect included
> >files, does it?
> >
> >--jeff
>
> I may be out to lunch here, Jeff, but it seems to me that it makes all the
> sense in the world for an included file to be affected by its MIME type.
>
> -- micael
>
>
> --
> 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