This is the structure: (they're in the same directory!)
Directory
|-view.jsp
|-stylesheet.css
When I do <link href="stylesheet.css" rel="stylesheet" media="screen">
The .css file does not get referenced correctly, i.e. I have no idea what path to set to get to it (if put as a URL in the browser, I get a 404).
I guess it gets translated as http://localhost:8080/myApp/stylesheet.css
and then there is no mapping defined for it. Logging says:
WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/myApp/stylesheet.css] in DispatcherServlet with name 'appServlet'
It should work like this, shouldn't it? For example, this works:
<%@ include file="include.jsp"%>
include.jsp is in the same folder as well.