0

I have jsp file and trying to load bootstrap.min.css there, both files(jsp and bootstrap) are in the same directory which is webapp and this is the code that I use to link jsp and bootstrap.css together.

<link rel="stylesheet" type="text/css" href="bootstrap.min.css">

But the jsp is not reflecting any style that the bootstrap contain and this is the problem that I got.

Resource interpreted as Stylesheet but transferred with MIME type text/html

1 Answers1

0

The problem solved when I changed the code in the web.xml

<servlet-mapping>
<servlet-name>hotel-deals</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>

to

<servlet-mapping>
<servlet-name>hotel-deals</servlet-name>
<url-pattern>/hotel</url-pattern>
</servlet-mapping>