here is my problem: i'm trying to add a css style to my jsp file but it doesn't work at all. I have already tried a few recommended solutions, but none of them works.
index.jsp:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core_1_1" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<meta http-equiv="CONTENT-TYPE" content="text/html;charset = UTF-9"/>
<link rel="stylesheet" href="<c:url value="/WEB-INF/content/style.css"/>" type="text/css"/>
</head>
<body>
<h2>What's ur name?</h2>
<form method="post">
<input type="hidden" name="submitted" value="true" />
<input type="text" name="name" value="<c:out value="${param.name}"/>" />
<input type="submit" value="submit" />
</body>
</html>
style.css:
body
{
color:lightgray;
}
Do u guys probably have any idea what's wrong with my code ?