WebContent - resources - css - style.css WEB-INF - index.html
public synchronized Restlet createInboundRoot() {
Router router = new Router(getContext());
router.attach("/", IndexResource.class);
return router;
}
The IndexResource executes an HTML Respresentation (index.html)
In my index.html I have specified a css file. The problem is that it cannot be found.
<link href="/resources/css/style.css" rel="stylesheet" type="text/css">
I think /resources/css/style.css
is going via restlet and not the actual file path. How do I stop the resources folder executing as a servlet (restlet)?