tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alireza Fattahi <afatt...@yahoo.com>
Subject Re: JSP in Static Resources
Date Sun, 14 Jul 2013 10:43:34 GMT
Well,
 
If we want to follow up that post , then we should belive that:
Setting the mime type is not working for css
So
we should use other ways to solve it.
 
Is that true?!  
~Regards,
~~Alireza Fattahi


________________________________
From: André Warnier <aw@ice-sa.com>
To: Tomcat Users List <users@tomcat.apache.org> 
Sent: Sunday, 14 July 2013, 12:00
Subject: Re: JSP in Static Resources


Alireza Fattahi wrote:
> Guys please concentrate on the main issue !!

I believe that "the main issue" was already answered thoroughly by Konstantin earlier.
Did you not read it ?

> 
> I ask again:
> 
> When you set jsp servlet to process the css files by adding:
> <servlet-mapping>
>    <servlet-name>jsp</servlet-name>
>    <url-pattern>*.css</url-pattern>
> </servlet-mapping>
> 
> 
> The tomcat does not set the CSS file extension mime type to text/css. Although below
line is set in localhost-config/web.xml
> 
>    <mime-mapping>
>        <extension>css</extension>
>        <mime-type>text/css</mime-type>
>    </mime-mapping>
> 
> 
> When you manually set the content mime type <%@page contentType="text/css" %> every
thing will work fine
> 
> 
> ~Regards,
> ~~Alireza Fattahi


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message