> -----Original Message-----
> From: Alireza Fattahi [mailto:afatt...@yahoo.com]
> Sent: Monday, July 15, 2013 1:10 AM
> To: Tomcat Users List
> Subject: Re: JSP in Static Resources
> 
> Hi,
> 
> I am using YAML framework for layout management, it has lot's of css
> files to be changed, and on the other hand, if I want to set the
> contentType manually I should do it every time I upgrade the YAML
> framework.
> 
 
This is a fallacious argument, as you will have to manually re-add your JSP 
changes every time you upgrade.
Jeff

> 
> ~Regards,
> ~~Alireza Fattahi
> 
> 
> ________________________________
>  From: Leon Rosenberg <rosenberg.l...@gmail.com>
> To: Tomcat Users List <users@tomcat.apache.org>; Alireza Fattahi
> <afatt...@yahoo.com>
> Sent: Monday, 15 July 2013, 4:44
> Subject: Re: JSP in Static Resources
> 
> 
> 
> Hello Alireza,
> 
> what exactly was wrong with putting
> contentType="text/css;charset=UTF-8"
> 
> on top of your css-jsps?
> Actually each page should have content-type, so why not the css jsps?
> 
> Leon
> 
> 
> 
> 
> On Sun, Jul 14, 2013 at 12:43 PM, Alireza Fattahi <afatt...@yahoo.com>
> wrote:
> 
> 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 <a...@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-unsubscr...@tomcat.apache.org
> >For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to