tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jerome Louvel <jerome_lou...@yahoo.fr>
Subject Mime type not set for welcome files
Date Tue, 30 Nov 2004 13:43:46 GMT
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


Mime
View raw message