Favicon for Tomcat/Openvpms

I was asked by the practice manager to make the browser show an OpenVPMS 'favourite icon'.

If you google around you will find a recipe to set a favourite icon for each page served by Tomcat. You put the following in the <head> block of each page's HTML

<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

However, with OpenVPMS there is no way for an implementor to do this.

The more brute force method is to replace (or insert if there is none) the favicon.ico file in <Tomcat_Home>/webapps/ROOT with the icon you want to use. Now every page served by Tomcat (even the manager app) will have the new icon.

Having inserted the new favicon.ico, you will need to force a browser page refresh (eg Ctrl-Shift-R for Chrome) to get the new icon to show.

Regards, Tim G

Syndicate content