Tomcat 4.x does read the conf/web.xml to establish web
application default settings.  It is where default support
for JSP and static files, among other things, is defined
and configured.

Cheers,
Larry

> -----Original Message-----
> From: Reto Badertscher [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, March 26, 2002 1:05 PM
> To: Tomcat Users List
> Subject: AW: Problem with mime types, nobody answers?
> 
> 
> Is this also true for Tomcat 4.x ?
> 
> Reto
> 
> -----Urspr�ngliche Nachricht-----
> Von: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 26. M�rz 2002 18:33
> An: 'Tomcat Users List'
> Betreff: RE: Problem with mime types, nobody answers?
> 
> 
> The conf/web.xml file is no longer read by Tomcat 3.2.x.  You
> will need to add these entries to the WEB-INF/web.xml in each web
> application that needs them.
> 
> Cheers,
> Larry
> 
> > -----Original Message-----
> > From: H�ctor Garcia Peris [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 26, 2002 10:47 AM
> > To: [EMAIL PROTECTED]
> > Subject: Problem with mime types, nobody answers?
> >
> >
> > Hello all,
> >
> > I have tomcat 3.2.2 running in a debian potato 2.2.l9. I have
> > a problem
> > with mime types. When I get a page with extension .css I see
> > that the mime
> > type that the server returns to me is text/plain. I find a
> > file under the
> > conf directory that is web.xml that there are lines with this:
> >
> >      <mime-mapping>
> >          <extension>
> >              wrl
> >          </extension>
> >          <mime-type>
> >              x-world/x-vrml
> >          </mime-type>
> >      </mime-mapping>
> >
> > I think that here is where I can put my extensions and I put
> > the following
> > lines:
> >
> >      <mime-mapping>
> >          <extension>
> >                  css
> >          </extension>
> >          <mime-type>
> >                  text/css
> >          </mime-type>
> >      </mime-mapping>
> >      <mime-mapping>
> >          <extension>
> >                  js
> >          </extension>
> >          <mime-type>
> >                  application/x-javascript
> >          </mime-type>
> >      </mime-mapping>
> >
> > But when I restart the tomcat server and I get the file
> > http://localhost:8080/estilos.css, the mime type is still
> > text/plain, and
> > not text/css.
> >
> > What am I making wrong?
> >
> > 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:tomcat-user-> [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]>
> 
> 
> --
> 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