File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes favicon icon configuration in tomcat 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "favicon icon configuration in tomcat 6" Watch "favicon icon configuration in tomcat 6" New topic
Author

favicon icon configuration in tomcat 6

albin nacosta
Greenhorn

Joined: Aug 03, 2010
Posts: 3
hello all,

i have following scenario.

we have web-apps folder in tomcat server.where the applications are deployed.
lets say there is 3 different application deployed.

now i want all three application to display my custom favicon icon image.
how can i do that.

is there any way that we can configure in tomcat's web.xml file.
that Applcation1 will show sum faviconicon and appllication2 shows other favicon icon as per provided link.

Thanks in advance....!!!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60992
    
  65

"favivon" has nothing to do with Tomcat. You need to put the correct markup in your HTML files.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

And you need to define two different link tags in the header - one for IE and one for the other ones.



Regards, Rene Larsen
Dropbox Invite
albin nacosta
Greenhorn

Joined: Aug 03, 2010
Posts: 3
hi

my problem is that i am using FOP object to show pdf in new window using servlet.
i am using xslt and xml file to generate pdf file. and servlet is generating response using FOP object.
as the following code

FopFactory fopFactory = FopFactory.newInstance();
fopFactory.setStrictValidation(false);
.
.
.
transformer.transform(src, res);

and the servlet response shows pdf in new window with tomcat favicon icon.

now the problem is that the response is in pdf so there wont be any <head></head> section. or html tags like <link>....
so what i was thinking that may be i can configure that icon from tomcat.
so what so ever page opens it shows my custom icon.

please suggest some solution.

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: favicon icon configuration in tomcat 6