I did a little investigation and it looks like the <icon> part of web.xml
has nothing to do with displaying a custom icon in the web browser's address
bar, as I suspected. I think <icon> is intended to allow you to specify a
custom icon for your web app that will appear in GUI tools related to the
app server. For instance, many app servers have web-based administration
consoles or some other kind of GUI administration tool. However, I tried
this with WebLogic 6.1 and it doesn't seem to use my icons. Perhaps later
versions do, but 6.1 seems to ignore it, even though the icon image paths I
specified do show up in the deployment descriptor (web.xml editor) section
of the admin console. But you don't actually see the images with this app
server.

I did a google search as Ramesh suggested and found the solution that Louise
recommended. Here's a page with more details:
http://www.chami.com/tips/internet/110599I.html

-Max

----- Original Message ----- 
From: "Bjørn T Johansen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, September 08, 2003 11:12 PM
Subject: Re: Icon?


> On Mon, 2003-09-08 at 03:27, Max Cooper wrote:
> > Two things come to mind:
> >
> > 1. Do you want an icon that will show up in a browser when a user
accesses
> > your application/site? If so, you need to do something else -- the
<icon>
> > part of the servlet spec seems to indicate that it is for GUI tools
(like
> > your app server's management console) rather than for browser access to
the
> > webapp itself. I am not totally sure about this as I have not tried it
> > myself, but that is my impression from reading the servlet spec.
>
> Well, I want to change the icon that appear in front of the url in the
> browser, I see other use it...
> >
> > 2. Is the <icon> element in the right place in the web.xml file? An
editor
> > that does XML validation (like IntelliJ IDEA and other IDEs and XML
editors)
> > is very helpful for pointing out such errors.
>
> I tried moving it around and the only thing that happens is that I am
> getting an error msg if I am putting it under the servlet tag and under
> the web tag nothing happens.
> I also tried setting this in the header:
> <link rel="shortcut icon" href="<html:rewrite forward="mainIcon"/>"
> type="image/x-icon" />
>
> but nothing...
>
> Anyone?
>
> >
> > -Max
> >
> > ----- Original Message ----- 
> > From: "Bjørn T Johansen" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Sunday, September 07, 2003 8:44 AM
> > Subject: Icon?
> >
> >
> > > I am trying to customize the icon my webapp is using by adding
> > >
> > > <icon>
> > >       <small-icon>
> > >             path-to-icon
> > >       </small-icon>
> > > </icon>
> > >
> > > in my web.xml file, but nothing happens. What am I overlooking?
> > >
> > >
> > > Regards,
> > >
> > > BTJ
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> -- 
> --------------------------------------------------------------------------
---------------------
> Bjørn T Johansen (BSc,MNIF)
> Executive Manager
> [EMAIL PROTECTED]                  Havleik Consulting
> Phone : +47 67 54 15 17         Conradisvei 4
> Fax : +47 67 54 13 91           N-1338 Sandvika
> Cellular : +47 926 93 298       http://www.havleik.no
> --------------------------------------------------------------------------
---------------------
> "The stickers on the side of the box said "Supported Platforms: Windows
> 98, Windows NT 4.0,
> Windows 2000 or better", so clearly Linux was a supported platform."
> --------------------------------------------------------------------------
---------------------
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to