Implementing favicon.ico with tomcat

If you wish to use  the favicon.ico file, be sure to add the following to the web.xmlfile in the conf directory:

    <mime-mapping>
        <extension>ico</extension>
        <mime-type>image/x-icon</mime-type>
    </mime-mapping>

Then just put your favicon.ico file in the root directory of your web application.  Voila!

Comments

Popular Posts