Ross Burton wrote:
>
> > > can we use getMimeType() from the Servlet API directly and let Tomcat
> > > handle it? it could be possible, given a better AJP protocol, to go back
> > > to Apache and let him handle the MIME type.
> >
> > Right, I've overlooked that, sorry. So we should have access to the
> > ServletContext in the <read> tag.
>
> Ermm.. there is no ServletContext in offline mode...
So you have to give a mime-type to the <read> tag to prevent it to grab
the ServletContext. Otherwise we have to wrap the ServletContext with a
CocoonServletContext as we do with the reques/response objects.
What do you think?
Giacomo
--
PWR GmbH, Organisation & Entwicklung Tel: +41 (0)1 856 2202
Giacomo Pati, CTO/CEO Fax: +41 (0)1 856 2201
Hintereichenstrasse 7 Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen Web: http://www.pwr.ch
|