You can download the Servlet specs here:

<http://java.sun.com/products/servlet/download.html>

Tomcat 3.2.x implements the Servlet 2.2 spec.

The conf/web.xml uses the same syntax as what would be
used in a WEB-INF/web.xml, so you can cut and paste if
you wish.

An important point to remember is that the sequence of
elements must occur in the order shown in the DTD.  Thus,
the declaration in web.dtd:

<!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*)>

means that the icon element must precede the display-name element,
which must precede the description element, etc.  Also, all
servlet elements would come before any serlvet-mapping elements.

Tomcat 3.2.x won't complain if you get them out of order since it
doesn't validate the web.xml.  However, use of a custom tag will
trigger an error since it does valid when reading the web.xml for
taglib elements.  Both Tomcat 3.3 and Tomcat 4.x validate web.xml's
during startup so you learn of the problem sooner.

Cheers,
Larry

> -----Original Message-----
> From: H�ctor Garcia Peris [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, March 27, 2002 4:08 AM
> To: Tomcat Users List
> Subject: RE: Problem with mime types, nobody answers?
> 
> 
> At 18:57 26/03/02, you wrote:
> >You question isn't clear to me.  Tomcat 3.2.x still includes a
> >conf/web.xml, in the binary distribution, but it is no longer used
> >for establishing web application default settings.  I'm not sure at
> >which point it stopped being used.  As a result, the default settings
> >a web application gets are minimal and includes no mime mappings.
> >You will need to add any mime mappings you need to your web
> >application's WEB-INF/web.xml file.  For portability, this is the
> >correct location to specify this.
> 
> And how can I put this mime types in the file? I tried but I 
> don't know the 
> syntax of the xml file. Where can I get this information?
> 
> Thanks.
> 
> 
> ---------------------------------------------------------------------
> H�ctor Garcia Peris
> Dpto. Inform�tica
> Instituto Valenciano de Investigaciones Econ�micas S.A. (Ivie)
> C/ Guardia Civil, 22 esc-2 1� 46020 - Valencia (Spain)
> Tfno.: +34 - 963190050 / +34 - 963930816
> Fax.: +34 - 963190055 / +34 - 963930856
> e-mail: [EMAIL PROTECTED]
> ----------------------------------------------------------------------
> 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to