tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Baktiar <dbakt...@gmail.com>
Subject Re: jsp page on Tomcat non loading css
Date Sat, 08 Nov 2014 01:55:52 GMT
Hi Alessandro,

Is there any servlet filter running which modifies the "Content-Type"
headers?
Look at the web.xml for <filter/> tag.

Daniel Baktiar

On Thu, Nov 6, 2014 at 7:04 PM, Alessandro Panzeri <
alessandro.panzeri88@gmail.com> wrote:

> I deployed a war on Tomcat 7 to serve a jsp page.
>
> In the jsp page I put this css tag:
>
> <link href="../css/new_style.css" rel="stylesheet" type="text/css"/>
>
> Also, at the beginning of the jsp page I put this:
>
> <%@ page contentType="text/html;charset=utf-8" %>
>
> However when I contact via browser such jsp page, the css is NOT loaded and
> I found that the reason is (returned by Google Chrome inspecting the page):
>
> "Resource interpreted as Stylesheet but transferred with MIME type
> text/plain."
>
> I can't figure out what to modify...any advice?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message