I have a web application running on tomcat. I want to setup a favicon for it. Where should i place it in the tomcat web application.
If you place a file called favicon.ico in your document root (/), it will automatically used.
Just to summarize answers (1, 2) up:
Name your icon favicon.ico and put it into the /src/main/webapp (for Maven layout) or /WebContent (for standard Eclipse layout).
Specify icon in every HTML page (or master page if present):
<head><link rel="shortcut icon" href="favicon.ico"/></head>
Refresh project / clean/restart server / refresh page with Ctrl+F5 (to skip browser's cache).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With