The DTD entry governing the web-app element from this DTD is:

<!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*, servlet*, servlet-mapping*, session-config?,
mime-mapping*, welcome-file-list?, error-page*, taglib*,
resource-ref*, security-constraint*, login-config?, security-role*,
env-entry*, ejb-ref*)>

You can get the dtd just by pointing your browser to the location
indicated:

    http://java.sun.com/j2ee/dtds/web-app_2_2.dtd


The elements inside the web-app element MUST (at least given this DTD) be
in the EXACT order that the DTD specifies.

If you look at your xml, you'll find the


> >   <servlet>
> >     <servlet-name>AttachmentServlet</servlet-name>
> >     <display-name>AttachmentServlet</display-name>
> >     <description>no description</description>
> >     <servlet-class>AttachmentServlet</servlet-class>
> >   </servlet>

element is listed AFTER some servlet-mapping elements. This causes the xml
document to be "invalid".

Also, display-name and description are out of place.

A good reference to DTD's is the Java and XML book by O'Reilly or the
following URL:

         http://www.xmlfiles.com/dtd/




---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------


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

Reply via email to