Hi all,
I'm currently evaluating the MVC API and really like it so far. Unfortunately I stumbled over the problem, that any CSS I want to link within a view (in this case a really dumb JSP)
could not be found. I tried several approaches like moving the directory containing the CSS in the project, changing paths from project-relativ to context-relative etc in the JSP. but nothing
really worked. I also tried to use Webjars as it is done in this slightly outdated example (
https://github.com/chkal/todo-mvc/blob/master/src/main/webapp/WEB-INF/views/items.jsp)
but even that didn't the trick. That leads to my question: What would be the correct way to solve this? I couldn't find anything in the MVC Spec regarding static assets,
so maybe there is some workaround for getting this to work (or it's a Layer 8 problem and I oversee something).
I'm using Wildfly 15 as application server (or maybe that is the problem?).
Thank in advance and best regards,
Tobias
P.S.: For a quick overview, here the JSP and my webapp directory:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>EE4J MVC Example</title>
<link href="${mvc.basePath}/webjars/materializecss/1.0.0/css/materialize.css" rel="stylesheet">
<link href="${mvc.basePath}/assets/css/styles.css" rel="stylesheet">
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
