Yeah man I don't keep my "direction" intact often. Yes it is not in the XML I want to
show the icon but in the manager. Silly me. And by golly I still had the order
incorrect. OK I changed the order correct this time:
<?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>
<icon>cl6D11.gif</icon>
<display-name>Welcome to My JSP-Files</display-name>
<description>
Welcome to My JSPs
</description>
</web-app>
jeeze!!!
OK let's see if it works now...
--
George Hester
__________________________________
"Mike Curwen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>
> > -----Original Message-----
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of George Hester
> > Sent: Wednesday, February 25, 2004 4:07 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: attributes of the element web-app?
> >
> >
> > Hi no error at all. I believe it is in the correct order:
> >
> > <web-app>
> > <display-name>Welcome to My JSP-Files</display-name>
> > <icon>cl6D11.gif</icon>
> > <description>
> > Welcome to My JSPs
> > </description>
> > </web-app>
> >
> > The dtd is:
> >
> > <!ELEMENT web-app (icon?, display-name?, description?,
> > distributable?, context-param*, ...
> >
>
> Right, so you have an error in the order. A webapp is "optionally an
> icon element, optionally a display-name, optionally a
> description..",etc, etc.
>
> You have Description, then icon.
>
> <web-app>
> <icon>cl6D11.gif</icon>
> <display-name>Welcome to My JSP-Files</display-name>
> <description>
> Welcome to My JSPs
> </description>
> </web-app>
>
>
> > I was thinking the same thing the order that's why I changed
> > it from my original post to the one above. I'm going to have
> > to investigate the ATTLIST I may need a attributes on the
> > child element <icon>. I can tell you getting images to
> > appear in XML is tricky business. I have done it but using a
> > XSL. I do have an XML that does it natively so I'll look
> > more into that. Right now I don't think the dtd is
> > constructed correctly for the image. At least it dosen't
> > have the type of elements contructed in a dtd to do it as far
> > as I can tell.
> >
>
> This sounds like you're 'embedding' an image in XML? (I'm not sure
> what you mean by "to appear in XML"). Tomcat only uses the filename,
> and tries to find that icon file, as Tim pointed out,
>
> "The file
> name is a relative path within the web application's
> war file."
>
> So the file named in the 'icon' element is used, if found, by the
> deployer(or not) it wouldn't look inside the XML itself for the icon.
> (would it??) Have I totally misunderstood this last bit ?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]