You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Torsten Eberl <ne...@vstar.de> on 2002/03/26 11:06:04 UTC

MimeTypeService

Hello,

I'm trying to use the TurbineMimeTypeService.

I put the Apache mime.types file in the conf-path and added that to the TR.properties.
But nothing happend.

Then I copied the TurbineMimeTypeService-Class to watch the logs. But I figured out that the init()-function is not being called by the Init-Service.
Why?

And what is the difference between early and late initializing?
Is it true that the TurbineMimeTypeService is an late-initializing-service?

Many questions.
Hope to get an answer.

Thank you

Torsten



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: MimeTypes not being recognized...works!

Posted by Bruce Altner <ba...@hq.nasa.gov>.
Sorry, false alarm. It turned out to be a caching problem...even though I'd 
(finally) configured Turbine correctly
the browsers (Netscape and IE) were still pulling from cache. Now it works 
great.

Thanks...and never mind!

Bruce


At 04:15 PM 5/23/2002 -0400, you wrote:
>Greetings:
>
>My application present a list of files of different mime types to the user 
>as hyperlinks but no matter whether I put the mime type definitions in an 
>apache-style mime.types file or use the mime-mapping constructs in 
>web.xml, I cannot get Turbine (tdk2.1) to cooperate...I just get the ugly 
>binary data when I click on the links. These work fine under apache 
>itself, since it knows the type definitions, but the Turbine servlet seems 
>to force the mimetype back to text/html.
>
>  These are not exotic types, just powerpoit, excel, etc. It does seem to 
> work with rtf files, though. What am I doing wrong?
>
>Thanks,
>Bruce
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


MimeTypes not being recognized

Posted by Bruce Altner <ba...@hq.nasa.gov>.
Greetings:

My application present a list of files of different mime types to the user 
as hyperlinks but no matter whether I put the mime type definitions in an 
apache-style mime.types file or use the mime-mapping constructs in web.xml, 
I cannot get Turbine (tdk2.1) to cooperate...I just get the ugly binary 
data when I click on the links. These work fine under apache itself, since 
it knows the type definitions, but the Turbine servlet seems to force the 
mimetype back to text/html.

  These are not exotic types, just powerpoit, excel, etc. It does seem to 
work with rtf files, though. What am I doing wrong?

Thanks,
Bruce


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>