I don't think the spec is that detailed -- I mean, it doesn't come out and
say the "page" attribute of jsp:include has to follow the requirements of
the JspWriter. So, I don't know the answer to that.

Remember though, we're talking about included files -- by their very nature,
they don't necessarily represent *entire* files. They may only be pieces of
a bigger file that is ultimately displayed to the surfer. I can understand
that the file sent to the browser must have a sensible MIME type, but must
all the pieces that the file is built from also have registered MIME types?
I'm not sure that makes sense.

Also, I always thought MIME types, in this context, were available so the
browser could decipher what kind of file was being retrieved and display
that file correctly. I never thought MIME types would be used to limit my
flexibility with JSPs in this way.

Thanks,
--jeff

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


> At 01:27 PM 12/8/01 -0800, you wrote:
> >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
> > >
>
> The JSP specification does tie the use of include to the requirements of
> the out JspWriter ?
> --- 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