cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo" <agalla...@agssa.net>
Subject Re: Cleanup forms/samples/resources
Date Mon, 29 Nov 2004 14:07:55 GMT
<cita quiƩn="Jorg Heymans">
>
>
> Jeremy Quinn wrote:
>>
>
> <snip/>
>
>> Yes, I was one of the people always doing that !!!
>> I always assumed you needed to add the mime-type to the <map:read/> so
>> needed specific pipelines for each type.
>>
>> Thanks for the tip !!!
>
> How does cocoon send the mimetype of a file then? Does it have a
> mime.types somewhere internally like apache? Or does it rely on the
> browser to interprete the binary stream correctly or guess it from the
> file extension?

Yep. From the file extension. Defined in the web.xml. For example in
Tomcat See:

$TOMCAT_HOME/conf/web.xml

For the no-defined applications, we can also add new ones in the Cocoon
web.xml file.

Search for mime in both files.

Best Regards,

Antonio Gallardo.


Mime
View raw message