To display a favicon or custom icon or company logo icon on a web application.
We had an tomcat web application to include the favicon to it.
To display the icon we should use the
<link rel="icon" href="/favicon.ico">
the above should go within the html head. even if its a jsp file.
you can also use "type" attribute in the "link" tag, like below
<link rel="icon" href="/favicon.ico" type="image/x-icon">
also
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
shortcut and icon in rel attribute of the link tag identifies two relations icon and shortcut.
shortcut doesn't have a meaning.
the imgae favicon.ico : should be a 16x16 or 32x32 image. to design an icon you can use the http://www.xiconeditor.com/
put this the corresponding image locations in the application, provide the reference in the "href" attribute of "link" tag.
start the tomcat application after making the link reference.
clear the IE temporary files, histories, cookies. even from the favorite links.
provide the link of the application and the favicon will be displayed.

No comments:
Post a Comment