I'm not so sure. The JSP spec doesn't say anything about having to register
the MIME type of a file before using it in a jsp:include directive. Consider
how difficult that would be if you were generating dynamic filenames with
extensions like ".001", ".002", ".003", etc... You could potentially have to
register several hundred (even thousand) meaningless MIME types. Also, think
about what webservers do when they encounter an unknown MIME type -- they
default back to text/html (or whatever you have set as your default...). Why
should a JSP be more strict than this with it's include directive? The file
you are including is required to be a valid URL -- which means it could be
accessed via the webserver anyway.

Remember, Tomcat is the RI and should implement the spec as closely as
possible. I've gone back and looked through my books on JSP, and every one
of them says that you can use any file extension with the jsp:include
directive. However, none of them say you have to register that extension as
a valid MIME type first. At the very least, it's confusing for someone who
expects it to work when it doesn't -- especially when there's no
documentation on it.

Thanks,
--jeff

----- Original Message -----
From: "Micael Padraig Og mac Grene" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, December 08, 2001 10:12 AM
Subject: Re: Unable to include *.sum files (Again)


> At 08:22 PM 12/7/01 -0800, you wrote:
> >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
>
> Well, jeff, then it is not a "bug".  At best it is a difference of
> opinion.  That makes all the sense in the world to me.  If you want to
> bring in something other than the "known 'text/* MIME types," just include
> the proper code in your include?  We have differing intuitions here.  I
> think what Catalina is doing is proper and makes sense.  But, at worst for
> you, it is an inconvenience.  Right?
>
> -- 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