tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Valle <pva...@eprocess.fr>
Subject Re: CSS in War file
Date Mon, 15 Dec 2003 09:26:05 GMT
Duncan Smith wrote:

>I've just started deploying a web app as a war file instead of uploading
>individual files. Everything works except my styles don't load.
>
>The stylesheet is added to the war file in the same location as before,
>but if I try to request the css file on it's own I get a
>java.lang.NullPointerException
>error.
>
>Any suggestions anyone?
>
>- Duncan
>www.pennymail.com
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>  
>
Wath tomcat version used ?

if tomcat 3.3 add this in your web.xml :
   <mime-mapping>
      <extension>css</extension>
      <mime-type>text/css</mime-type>
   </mime-mapping>

that all.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message