• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

favicon.gif

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

Our J2EE application deployed in WAS 6.0 and in the server log we see there are requests to access favicon.gif but without application login (we have siteminder security installed). The URL for the gif and the gif itself is not valid , we do not know how this request is made and which client machine is sending this request, as the login user pin is NULL always. Due to this the sys out log are filling up as WAS throws lot of stack trace.

We hear that favicon is the bookmark icon and we use IE7, so if a user bookmarks a page say /xyz/abc.do URL, will IE try to look for this favicon as /xyz/favicon.gif ? Log says the requests are to /xyz/favicon.gif ...and the requests are not in regular intervals...

We are able to ignore this exception now, but appreciate if someone can tell me how this request is made and how a web.xml or Struts Controller Servlet or Filter has to be designed to avoid this request of favicon. or if an application allows book marks should we do any coding in JSP.?

Thanks for your help.

Regards,
Vinod Kumar
 
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

You can create a simple ico file and keep it some place under docroot.

Include the reference to the ico file in your jsp page
<link rel="SHORTCUT ICON" href="/images/favicon.ico">

See this link on why the hits to the server cannot be avoided.
http://publib.boulder.ibm.com/httpserv/ihsdiag/questions.html#faviconinlogs
 
reply
    Bookmark Topic Watch Topic
  • New Topic