You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jerome Louvel <je...@yahoo.fr> on 2004/11/30 14:43:46 UTC

Mime type not set for welcome files

I have a web app with the following configuration:

    <mime-mapping>
        <extension>xhtml</extension>
        <mime-type>application/xhtml+xml</mime-type>
    </mime-mapping>

    <welcome-file-list>
        <welcome-file>index.xhtml</welcome-file>
    </welcome-file-list>

When I request http://myserver/index.xhtml I receive the XHTML web page
normally. However, if I request http://myserver/ I receive the file
without the correct mime-type set, which opens an Open with/Save as...
dialog in the browser.

It seems that the "welcome-file-list" is ignoring the "mime-mapping" set
in the configuration. Is this as designed, a configuration issue or a bug?

Thanks,
Jerome



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org