Encountering the "http status 404 - the requested resource is not available" error specifically for my template.css file. After some investigation, it seems to be a referencing issue.
This error is preventing any styling from being applied to my welcome.xhtml page.
Despite thorough checks, I am unable to identify any errors. Assistance would be greatly appreciated.
Attached below is a snippet of my Welcome.xhtml page:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<title>TODO supply a title</title>
<meta name="viewport" content="width=device-width"/>
<link rel="stylesheet" type="text/css" href="../../CSS/templateCSS.css"/>
</h:head>
<h:body>
<!-- Rest of the code -->
</h:body>
</html>
The problematic line seems to be href="../../CSS/templateCSS.css".
Unfortunately, due to inadequate "reputation," photo uploads are currently unavailable.
Update: I have attempted changing the reference to:
However, the issue persists and the file hierarchy is as follows:
- Web Pages Folder
- CSS Folder
- templateCSS.css
- Webpages Folder
- templates Folder
- Welcome.xhtml
- templates Folder
- CSS Folder