OK I'm trying that now.  I wasn't sure where the image should have gone.  And oh yeah 
please pardon my XML bastardization.  I should of said, "child elements" of the 
element web-app not "attribute."

Crap didn't work.  Oh well.

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd";>

<web-app>
  <display-name>Welcome to My JSP-Files</display-name>
  <icon>cl6D11.gif</icon>
  <description>
     Welcome to My JSPs
  </description>
</web-app>

with C:\Inetpub\JSP_Files\cl6D11.gif

JSP_Files is my web-app.

-- 
George Hester
__________________________________
"Tim Funk" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> The dtd also says:
> 
> <!--
> The small-icon element contains the name of a file
> containing a small (16 x 16) icon image. The file
> name is a relative path within the web application’s
> war file.
> The image may be either in the JPEG or GIF format.
> The icon can be used by tools.
> Used in: icon
> Example:
> <small-icon>employee-service-icon16x16.jpg</small-icon>
> -->
> 
> So *if* tomcat shows the icon (which isn't required so I can;t recall if it 
> does) - the example above would look for the icon at:
> 
> mywebapproot/employee-service-icon16x16.jpg
> 
> -Tim
> 
> George Hester wrote:
> 
> > I downloaded Sun's DTD from here:
> > 
> > http://java.sun.com/dtd/web-app_2_3.dtd
> > 
> > After cleaning it up (just making it readable linebreaks) I was scanning through 
> > it to see what some of the attrributes are for the element web-app.  According to 
> > this:
> > 
> > <!ELEMENT web-app (icon?, display-name?, description?, distributable?,
> > context-param*, filter*, filter-mapping*, listener*, servlet*,
> > servlet-mapping*, session-config?, mime-mapping*, welcome-file-list?,
> > error-page*, taglib*, resource-env-ref*, resource-ref*, security-constraint*,
> > login-config?, security-role*, env-entry*, ejb-ref*,  ejb-local-ref*)>
> > 
> > one of the attrributes of this element is icon which can be 0 or 1 instance.  So I 
> > put this in like so:
> > 
> > <web-app>
> >   <display-name>Welcome to My JSP-Files</display-name>
> >   <description>
> >      Welcome to My JSPs
> >   </description>
> >   <icon>cl6D11.ico</icon>
> > </web-app>
> > 
> > and put the icon c16D11.ico in the same folder as web.xml namely WEB-INF. (I don't 
> > think the order matters???)
> > 
> > Assuming the dtd is well formed (the icon element is set up correctly in the dtd) 
> > I expected to see the icon in the Manager for my Tomcat 4.1.29.  But I didn't for 
> > the Webapp that corresponds to Welcome to My JSPs.  What did I do wrong?  I 
> > restarted Tomcat but nothing no icon.
> >


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

Reply via email to