Hello everybody in javaranch I've got some problems here ,on my deployment apache tomcat5 server i have about 7 working websites , in production mood , all of them under webapps folder ,,inside apache i know that in order to change the url icon displayed in the lift corner of the adress bar , i have to replace the file favicon.ico which located under , ../webapps/root whith my own favicon.ico file but the problem is that i dont want to change all the url icons for my 7 websites,,, and each website has its own url icon and ofcourse i dont want to fix this problem by providing a link inside the header of each jsp in each website ... this of course will be so booring... can anyone please help me do some configuration in order to assign each url icon , to its own website ,,through some tomcat configurations thanks for help Best regards
"Nothing is harder on your aurels than resting on them."<br />SCJP 1.4 89%,,SCJA 80%,SCWCD1.4 81%
I don't think there is a configuration to help you out, but you could write a simple servlet, filter or whatever that checks out the http referral address and responds with (or redirects to) a domain specific favicon file.
"This is not to say that design is unnecessary. But after a certain point, design is just speculation." --Philip Chu
Hi, i got the same situation. I need to place different favicons ( 3 different ones for 3 webapps ) under the same tomcat.
I need it urgent. Can you guys tell me what exactly i need to do for this i mean, Can you explain how to implement this using servlet / filter ?
Thanks for letting us know that there is no configuration kind of setting for this.
Thanks for letting me know how to ask questions in forums. Thsi is the first time i registered in a forum. I read the Faq after your reply and trying to implement accordingly.
Coming to the different favicon implementation for different webapps in same tomcat,
Its good to know that there is some configuration we can do.
Can you please let me know how i can do
I was able to do it as the websites are having some templates ( Magnolia Content Management System ) and i included the code in the template and it got displayed when i placed the <link ...> element in the header.jsp which is included in all the pages.
Now, the problem is it is not getting displayed when the tomcat on the prod is behind the Load balancer.
-> Having the 'favicon.ico' inside the Web-Content folder of the application AND
-> Having the following line inside the head tag of the jsp worked for me.
<LINK REL="SHORTCUT ICON" HREF="favicon.ico">
I am going to test your electrical conductivity with this tiny ad: