W3C home > Mailing lists > Public > www-validator-cvs@w3.org > January 2007

2002/css-validator web.xml,1.1,1.2

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 15 Jan 2007 00:52:26 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1H6G5K-00043n-Kx@lionel-hutz.w3.org>

Update of /sources/public/2002/css-validator
In directory hutz:/tmp/cvs-serv15527

Modified Files:
	web.xml 
Log Message:
hack to force tomcat to recognize our localized html files

Index: web.xml
===================================================================
RCS file: /sources/public/2002/css-validator/web.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- web.xml	30 May 2004 19:52:55 -0000	1.1
+++ web.xml	15 Jan 2007 00:52:23 -0000	1.2
@@ -14,5 +14,47 @@
        <servlet-name>validator</servlet-name>
        <url-pattern>/validator</url-pattern>
    </servlet-mapping>
+
+
+<!-- ===================== Additional MIME Type Mappings =================== -->
+<!-- tomcat does not know language file extensions, we have to force them    -->
+<!-- to properly be recognized as being html files...                        -->  
+
+    <mime-mapping>                                                          
+        <extension>en</extension>
+        <mime-type>text/html</mime-type>
+    </mime-mapping>
+    <mime-mapping>                                                          
+        <extension>de</extension>
+        <mime-type>text/html</mime-type>
+    </mime-mapping>
+    <mime-mapping>                                                          
+        <extension>fr</extension>
+        <mime-type>text/html</mime-type>
+    </mime-mapping>
+    <mime-mapping>                                                          
+        <extension>es</extension>
+        <mime-type>text/html</mime-type>
+    </mime-mapping>
+    <mime-mapping>                                                          
+        <extension>it</extension>
+        <mime-type>text/html</mime-type>
+    </mime-mapping>
+    <mime-mapping>                                                          
+        <extension>nl</extension>
+        <mime-type>text/html</mime-type>
+    </mime-mapping>
+    <mime-mapping>                                                          
+        <extension>ja</extension>
+        <mime-type>text/html</mime-type>
+    </mime-mapping>
+    <mime-mapping>                                                          
+        <extension>pl-PL</extension>
+        <mime-type>text/html</mime-type>
+    </mime-mapping>
+    <mime-mapping>                                                          
+        <extension>zh-cn</extension>
+        <mime-type>text/html</mime-type>
+    </mime-mapping>
    
 </web-app>
Received on Monday, 15 January 2007 00:52:36 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:27 UTC