I'm trying to make a simple Servlets + JSP project. It's structure looks like this:
index.jsp:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>App</title>
<link rel="stylesheet" type="text/css" href="../css/style.css"/>
</head>
<body>
<h1>Header</h1>
</body>
</html>
style.css:
body {
background-color: beige;
}
web.xml:
<web-app>
<display-name>App</display-name>
<servlet>
<servlet-name>IndexServlet</servlet-name>
<servlet-class>com.example.web.IndexServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>IndexServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
When I start the application and open it in the browser I see the index.jsp page but it's background is white so the css isn't working there. What could be the problem?