aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Icon Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Icon" Watch "Icon" New topic
Author

Icon

Chen Yanush
Greenhorn

Joined: Oct 31, 2004
Posts: 26
Hi,

How can I add an icon to my web application ?


Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

"rcy",

There aren't may rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Chen Yanush
Greenhorn

Joined: Oct 31, 2004
Posts: 26
Ok
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

The browser will look for a resource named "favicon.ico" in the root directory of your server.

Example:
GET /favicon.ico HTTP/1.1


The problem is that the browser will prepend the forward slash.
This means that the icon needs to be the root of the default application on your server to work.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

Moved to the HTML forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Icon